Viewing 15 posts - 16 through 30 (of 248 total)
In the Wizard, when you are specifying the mapping between tables from the Source to the Destination, click on Edit and check the check-box that says "Enable Identity Insert".
April 13, 2006 at 5:42 am
In the beginning of your procedure code that this report is using, check for the existence of the temporary table that your procedure creates...if it exists, drop it.
You can also...
April 13, 2006 at 5:37 am
You can use
sp_helpindex
In addition, search this site and you can find a couple of very useful scripts that give out a lot more information on all the indexes in...
April 8, 2006 at 9:28 pm
This is the best article on this topic (from a SQL Server MVP):
http://www.sommarskog.se/arrays-in-sql.html
April 6, 2006 at 5:39 am
You can do a GROUP BY on TOPIC_ID and TOPIC_TITLE and select the MAX(POST_TIME) to get a single record per TOPIC_ID and TOPIC_TITLE and then chose the TOP 5 out...
April 4, 2006 at 3:02 pm
You can do:
use pubs
go
declare @t varchar(8)
set @t='authors'
exec ('select * from '+@t+'')
or
use pubs
go
declare @t varchar(8), @cmd nvarchar(100)
set @t='authors'
set @cmd = N'select * from '+@t+''
exec sp_executesql @cmd
Doing the way that...
April 4, 2006 at 2:03 pm
There are couple of ways of doing it...one is:
declare @table table (col1 varchar(1000))
insert into @table values ('1234,45456,8888')
insert into @table values ('1234, ,8888')
insert into @table values ('1234,45456,')
select
substring(col1, 1, charindex(',',...
April 4, 2006 at 1:54 pm
The error message is pretty explicit. You cannot do that.
If you want to make call to another stored procedure, change your function to be a stored procedure and then you...
April 3, 2006 at 6:41 am
You can script the structure out - In Enterprise Manager, right click the database, All Tasks and Generate SQL script...then chose whatever options you need and that will generate the...
March 29, 2006 at 5:24 am
Assuming that you want to preserve the first entry when duplicates are encountered, you can do something like this:
set nocount on
go
declare @table table (rowid int identity(1,1), DESC_COL varchar(20))
insert into @table...
March 28, 2006 at 9:36 am
Yes, it does. It's called indexed views in SQL Server. MVs are Oracle lingo.
From BOL:
Indexed views can be created in any edition of SQL Server 2000. In SQL Server 2000...
March 28, 2006 at 6:31 am
set nocount on
go
declare @table table (EmpID INT, DEPTID INT)
insert into @table values (1, 1)
insert into @table values (1, 2)
insert into @table values (1, 3)
insert into @table values (1, 4)
insert into...
March 28, 2006 at 6:29 am
Search this site for SQLXML and OPENXML and you will get your answer...there are a couple of good articles on this topic.
March 24, 2006 at 1:21 pm
Look at the white-papers from Quest:
http://www.quest.com/documents/list.aspx?ContentTypeId=1
These will get you started and will give you a very good understanding of what you need to do.
March 24, 2006 at 8:16 am
Cross database foreign keys are not supported in SQL Server. For query purposes, however, you can create linked servers (same as db links in Oracle) and then query across the...
March 21, 2006 at 8:31 am
Viewing 15 posts - 16 through 30 (of 248 total)