Viewing 15 posts - 751 through 765 (of 993 total)
Unfortunately you cannot use top with a variable in SQL 2000. Most of the time, people either use set ROWCOUNT, dynamic SQL OR... You could insert the data into a...
November 3, 2005 at 4:52 am
Try running from your client app and use some form of execute with no records option (I know that ADO can do this - I assume ADO.NET can also do...
November 3, 2005 at 4:50 am
Certain features in SQL, such as linked servers and indexed views, as well as indices on computed columns, require certain SET options to be set a particular wasy. This is...
November 3, 2005 at 4:48 am
Are you sure it is the insert statement? By the sounds of it, you have other statements in the proc as well apart from the insert given. Change your code...
November 3, 2005 at 4:42 am
Both of your subqueries are correlated, which is often a problem, but with the 1st query, SQL probably has to do a lot more evaluation and reading rows to determine...
November 3, 2005 at 4:36 am
Elegant solution (I too like the trick to get the correct day regardless of datefirst! Clever!). BUT... recursion in SQL is limited to 32 calls (XMAS holidays in schools, for...
November 3, 2005 at 3:07 am
I consider it a best practice thing to ALWAYS name your result columns and use column names to refer to the columns in your client-side code.
EG. You could have
select @@rowcount...
November 3, 2005 at 3:00 am
I too am from a Crystal background and would say that you could have a long query that reporting services runs, or have it call a stored proc. You could...
November 3, 2005 at 2:55 am
Strange amount of GB on Itanium system.. Spose 3GB could also be seen as a strange amount on a 4GB system too ![]()
Thanks for...
November 2, 2005 at 5:34 am
Are you sure that is the entire proc? Why are you declaring a variable called @result?
November 2, 2005 at 5:01 am
With regards to your SP, are you after
a) The resultset the SP returns
b) The value of an output param
c) The return value of the SP
?
November 2, 2005 at 4:34 am
This sounds bizarre...
Your report must be working in one of the following ways...
1.
It is a typical report - users set their parameters, the report generates a simple select statement (or...
November 2, 2005 at 3:50 am
I can only assume because bitwise operators are non SARGable - effectively SQL cannot use an index when you are working with such operations. Thus SQL cannot, based on the...
November 2, 2005 at 3:46 am
You should have indices on the fields on either side of the join to increase its performance - having a FK defined doesn't define an index for you..
November 2, 2005 at 3:43 am
BTW... output is
yr total grp ----------- ----------- ----------- 1990 15 1-20 1990 70 21-55 1995 60 1-20 1995 40 21-55
November 2, 2005 at 3:42 am
Viewing 15 posts - 751 through 765 (of 993 total)