Viewing 15 posts - 46 through 60 (of 89 total)
If you want to track changes ... you need to first check whether its insert, update or delete.
If insert the inserted table only will have record... if delete... only deleted...
December 11, 2008 at 4:27 am
This not always accurate, all this has been discussed in depth here
http://www.sqlservercentral.com/Forums/Topic604340-149-1.aspx
Yes exactly... the sysindexes might not have correct values in all the cases.
I think you better use...
December 11, 2008 at 4:09 am
create trigger add_xxx
on student
for insert, update, delete
as
insert into school
select ID, name, class from student
The code you provided is not sufficient. Please provide full code so that we can try to...
December 11, 2008 at 3:57 am
select object_name(id), rowcnt from sysindexes where id in (select id from sysobjects where type = 'u') and indid = 0
Use the above code.
December 11, 2008 at 3:47 am
IF NOT EXISTS(SELECT NAME FROM SYS.COLUMNS WHERE NAME = N'OPTION'
AND OBJECT_ID = OBJECT_ID(N'MARKS_SHEET'))
BEGIN
SELECT @sql= 'ALTER TABLE...
December 10, 2008 at 7:10 am
Using the same DB... I mean without using backup ... we cant restore a stored procedure to the previous version.
As Gail Shaw mentioned if you have backup of the...
December 10, 2008 at 1:04 am
I think you have not selected bids while installing.
or what you can do is install bids from sql sever cd.. it will definetely install bids.
If you have already installed vs2005...
December 8, 2008 at 3:52 am
Are selecting column names from information_schema.columns?
Try running only that query which is getting you the column names. Check whether is it returning column name.
Try running the query part by part...
December 7, 2008 at 10:42 pm
Sorry i have tryed it is not working.
Try this code
create proc test
as begin
return 1
end
GO
create proc test1
as begin
declare @a int
execute @a = test
print @a
end
execute test1
Here...
December 4, 2008 at 3:30 am
suppose I have a sp which returns boolean value 0 or 1 how can we get that value in another procedure in which we calling first sp.
Refer following code:
declare
December 4, 2008 at 3:13 am
Yes Anoop, please explain it further.
December 4, 2008 at 3:04 am
If you want get object_name using object_id.
you can use the following command
select object_name(object_id)
ex:
select object_name(1000)
December 4, 2008 at 2:47 am
It may due to concurrency.
If you are selecting the data from the server and at the same time some insertion is happening then the new inserted row wont be reflected...
December 4, 2008 at 2:45 am
Viewing 15 posts - 46 through 60 (of 89 total)