Viewing 15 posts - 16 through 30 (of 79 total)
If the values for a, b, and c are all positive numbers under ten:
If it were only so simple!
May 23, 2005 at 2:04 pm
Yes, (4, 1, 2, 1) is the row the query should return. However, your query does not return any row for pid=4.
May 23, 2005 at 12:54 pm
Back to the original question...
Column a is more important than b, and b is more important than c. A row with min(a) and max(b) and min(c) may not exist. Unfortunately,...
May 23, 2005 at 11:05 am
Definitely not easy to solve. The following is not the exact solution because it handles overlapping spans in addition to consecutive spans. Note that I modified the query for your...
May 12, 2005 at 7:28 am
"SET NOCOUNT ON" is indispensible in procedures called using ADO. If the client sees a non-error informational message output by the procedure, the client generally will not see an error...
April 20, 2005 at 6:45 am
You would have to use dynamic sql:
declare @hex varchar(10)
set @hex = 'FF'
declare @sql nvarchar(50)
set @sql = N'select @deci = 0x' + @hex
declare @deci int
execute sp_executesql @sql,
...
April 19, 2005 at 12:36 pm
I don't get that error. I get an overflow error if the number in the field1 is too big.
Check other columns in the table. Check defaults, too. I just...
April 19, 2005 at 12:24 pm
It's probably at the insert/update statement that you need to handle null issue. If you check the SQL that ASP app is generating, it's probably converting the variable or object...
April 19, 2005 at 12:07 pm
SQL Server translates a blank or empty string to 1/1/1900. See what I mean: select convert(datetime, '')
I've had problems with UI developers that just pass empty text box values to...
April 19, 2005 at 12:03 pm
Do the polling at the server. Trigger inserts row in queue table. A stored procedure loops until there's a row in the queue table; it uses WAITFOR to pause a...
April 19, 2005 at 9:35 am
loop through the cursor returned by sp_cursor_list, close and deallocate each open cursor. haven't actually used it; just read in BOL.
April 13, 2005 at 7:30 am
If you need to avoid creating object on the remote server, you can use sp_executesql.
exec remote.master.dbo.sp_executesql @sql
@sql contains statements to create #data, get the data, insert...
April 6, 2005 at 11:22 am
Your dynamic sql is a series of UNIONs. An alternative is to use a temp table. For each row of the cursor, execute sql to insert to the temp table....
April 6, 2005 at 8:53 am
Use a cursor. Loop through the results. Assign column values of each row to different set of variables. Use variables as parameters to sp.
[Looks like someone else just gave an...
April 6, 2005 at 8:12 am
Viewing 15 posts - 16 through 30 (of 79 total)