Viewing 15 posts - 106 through 120 (of 153 total)
When I've had to follow a hierarchical relationship in SQL 2000, I usually do the following:
1. create a temp table to store my results, with a Level column
2. "seed" the...
January 24, 2008 at 9:20 am
How do you know when your parameter contains an optional value? Lets assume for a minute that it is NULL. You could do something like:
If @Parm1 is NULL
...
January 19, 2008 at 12:05 pm
I'd agree with everything above. Also, run the profiler to get the exact string that RS is passing in, so you can test with something real.
January 17, 2008 at 4:53 pm
How many rows are we talking about here? What happens when you run Select count(*) from the table, then run Select * from the table? Do the records match? Do...
January 17, 2008 at 4:46 pm
Shaun McGuile (1/16/2008)
Current petrol prices here are abou $7.73 per gallon(US)!!!!!:crying:$6.18 of that is tax!!!!!:crying:
--Shaun
I remember paying $0.80 per gallon in Texas in the mid '90s 🙂
January 17, 2008 at 7:27 am
If I would try to write in "SQL 2000" style SQL, I think I'd do something like
Select codSubTasks.taskID, codSubTasks.SubTaskID, codSubTasks.subTaskSequenceNum
(
Select codTasks.taskID,...
January 17, 2008 at 6:42 am
Perhaps a TOP 1 With an ORDER BY clause would also meet the need.
January 16, 2008 at 6:19 pm
January 16, 2008 at 7:34 am
Thx Jeff, you da man.
January 15, 2008 at 7:51 pm
Select * From [1invalidtablename]
January 15, 2008 at 2:47 pm
I was just thinking of a plain vanilla stored procedure that returns a single result set. When I develop client side applications, or even SQL Server Reporting Services, some code...
January 15, 2008 at 2:23 pm
Is there no way to peek at the code of the SP you are calling and determine that? It will be the datatypes of all of the columns that are...
January 15, 2008 at 9:02 am
Here I go with another looping post...
If for some reason bcp does not do what you're after, you could do something like
declare
@a char(10)
, @b-2 char(255)
,...
January 15, 2008 at 7:20 am
With a UNION, it only matters that the data types of the columns you choose are the same. The column names that are returned in the first query in the...
January 14, 2008 at 8:08 pm
Viewing 15 posts - 106 through 120 (of 153 total)