Viewing 15 posts - 5,971 through 5,985 (of 7,191 total)
Ganesh
Please supply table DDL in the form of a CREATE TABLE statement, sample data in the form of INSERT statements, and the result set you expect to see. If...
April 28, 2008 at 6:41 am
Example 1 fails because you can't have a variable setting the database name. Example 2 fails because the dynamic SQL that you use executes in a different context from...
April 28, 2008 at 6:37 am
First of all, you need already to have a full backup and a differential backup of your database. If you do, then restore from the full backup with no...
April 28, 2008 at 6:24 am
You could try something like this:
DECLARE @tv table (reviewed char(1))
IF @reviewed IN ('P','B','N') INSERT INTO @tv VALUES ('P')
IF @reviewed IN ('F','B','N') INSERT INTO @tv VALUES ('F')
IF @reviewed = 'N' INSERT...
April 28, 2008 at 6:19 am
Yes, I should have spotted this the first time. Just get rid of the SELECT and it should work.
If you ever get a syntax error message, your first port...
April 28, 2008 at 3:33 am
Chandrachurh Ghosh (4/28/2008)
a #table has a local scope, so it will not work.....
Not true. A temp table will persist until it is dropped or the user connection terminates. ...
April 28, 2008 at 3:23 am
Raghu
Not sure what you're asking. A trigger is a spcecial kind of stored procedure that runs when a table is updated, inserted into or deleted from. Could you...
April 28, 2008 at 3:20 am
We know that, but we don't know what help you need. Was the query you posted successful? If not, in what way was it not? Did it...
April 28, 2008 at 3:17 am
Do the two databases have the same amount of data on them? Do you rebuild your indexes and update your statistics regularly? Have you compared the execution plans...
April 25, 2008 at 9:31 am
Rajesh
Can you not just use dbcc checkident (Discount, reseed, 1)?
John
April 24, 2008 at 6:10 am
I would say give them read-only access, and if they want anything changed, ask them to supply you with a script. I think if you go for anything less...
April 24, 2008 at 4:26 am
Rajesh
Please will you post your CREATE TABLE statement and the code you are using to reseed the identity value.
John
April 24, 2008 at 4:23 am
Karthik
Use sp_executesql with an output parameter.
John
April 23, 2008 at 8:33 am
... and it's helpful to have SQL Server 2000 Books Online, although I think you can download and install that separately. Speaking of which, make sure you regularly download...
April 23, 2008 at 6:49 am
Viewing 15 posts - 5,971 through 5,985 (of 7,191 total)