Viewing 15 posts - 22,951 through 22,965 (of 26,490 total)
The INFORMATION_SCHEMA views won't give you that information. You need to look at sys.columns to determine if it is an identity column.
January 20, 2009 at 2:21 pm
Someone with admin rights, that much I can tell you. Not sure of the default trace would capture who, but I'd start there. There is a function in...
January 20, 2009 at 1:27 pm
May I suggest that you read the first article I have linked in my signature block below? If you follow the guidelines presented in the article when asking for...
January 20, 2009 at 1:08 pm
Yes, you are welcome also.
I have written enough dynamic sql that I've been bitten by that error many times. I have learned to look for it.
January 20, 2009 at 12:56 pm
srathna77 (1/20/2009)
Query Please.Thanks
Pretentious aren't we. GSquared pointed you in the direction you need to go, try writing it yourself first. If you have problems, come back with what...
January 20, 2009 at 12:54 pm
One last change to the code provided by GSquared:
CREATE PROCEDURE sp_GetTasks
@colname nvarchar(50),
@colvalue int
AS
BEGIN
if not exists
(select *
...
January 20, 2009 at 11:40 am
Well, with only a description of your problem, you probably won't get many useful responses. Please read the first article I have referenced below in my signature block regarding...
January 20, 2009 at 11:30 am
Before anyone starts doing your work for you, would you please show us what you have done so far to meet your requirements? What problems are you having with...
January 20, 2009 at 11:16 am
Based solely on your post the following code works:
create table #TestTable(
vai1 int,
vai2 varchar(50)
);
insert into #TestTable
select 1,'1234,578';
select
right(vai2, len(vai2) -...
January 20, 2009 at 11:06 am
Looks like you have everything you need. Here is my test code based on your post.
create table #TestTable (
DateStamp nvarchar(50),
HireDate ...
January 20, 2009 at 10:31 am
r.hensbergen (1/20/2009)
CREATE PROCEDURE sp_GetTasks
@colname nvarchar(50),
...
January 20, 2009 at 10:20 am
To do what you are trying to accomplish, you will need to use dynamic sql. Based solely on the code you provided I see it as very dangerous as...
January 20, 2009 at 10:16 am
You may want to look into moving tempdb to its own disk drive (or set of disk drives). You can find instructions on moving tempdb in BOL. Shrinking...
January 20, 2009 at 10:02 am
Nope, replication has been around for quite awhile. I think I first "played" with it to see how it worked in SQL Server 7.0 but I never went beyond...
January 20, 2009 at 9:50 am
tevers (1/19/2009)
January 20, 2009 at 7:25 am
Viewing 15 posts - 22,951 through 22,965 (of 26,490 total)