Viewing 15 posts - 49,411 through 49,425 (of 49,552 total)
Could you please post the script of your view, tables and constraints. It's easier for people to help if they know exactly what you're doing.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 30, 2005 at 4:20 am
I must be going blind. I stared at that statement for several minutes and didn't even notice the from was missing. ![]()
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 29, 2005 at 6:16 am
Oops, my bad. Sorry.
No disrespect or insult was intended.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 29, 2005 at 6:02 am
The piece End derived table "D" should be preceeded by a -- (it's a comment, not part of the query)
SELECT D.CUSTNMBR,sum(d.SLSAMNT) AS Total
(
SELECT CUSTNMBR,SLSAMNT FROM RM20101
WHERE CUSTNMBR LIKE 'A%'
UNION ALL
SELECT...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 29, 2005 at 4:47 am
I hate to point out the obvious, but CAST('A102' AS INT) gives 'Syntax error converting the varchar value 'A102' to a column of data type int.' ![]()
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 28, 2005 at 11:56 pm
Thanks, that makes sense.
What about the self-blocking? It's not having any visible effects on the server, the commands aren't running for very long, though they do run often (They're an...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 26, 2005 at 3:12 am
Got a suggestion, but it depends on what the data looks like.
This won't work is you have values like A10B54 or 10B10 but is fine if the entries are...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 25, 2005 at 4:32 am
The points are for boasting rights, nothing more.
I would imagine the 21 points was a mistype that will be corrected as soon as Steve notices. ![]()
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 25, 2005 at 2:29 am
I assumed that the database did exist, and hence restore with replace was required, because there is a use Mydatabase right before the restore.
If the database didn't exist, then the...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 23, 2005 at 8:08 am
Agreed.
I didn't get the reason that REPLACE wasn't required.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 23, 2005 at 1:52 am
Agreed.
I didn't get the reason that REPLACE wasn't required.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 23, 2005 at 1:49 am
Wierd........
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 22, 2005 at 6:35 am
?????
Are you asking what it means, what you can do about it, why you got it, or something else completely?
To have got that...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 22, 2005 at 1:57 am
Yes, SQL's looking for a table-typed variable called @dbname1 to update, since an update statement must target a table, not a varchar variable.
More important is what are you trying to do?
If...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 22, 2005 at 1:41 am
You missed my point. If you don't FETCH before going into the WHILE, you don't know the value of @@FETCH_STATUS since it is GLOBAL for ALL cursors on a connection....
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 19, 2005 at 12:19 am
Viewing 15 posts - 49,411 through 49,425 (of 49,552 total)