Viewing 15 posts - 7,981 through 7,995 (of 13,460 total)
but he mentioned he's pulling from oracle...so joining a linked server table to your local table will threaten performance, because the command will copy the entire oracle table to tempdb,...
March 7, 2011 at 1:27 pm
not like you are asking, no ...you cannot dynamically create a table by calling your procedure.... have to create a table with the appropriate columns and datatypes first.
a work around...
March 7, 2011 at 1:03 pm
the issue is to NOT use the INSERT...VALUES syntax, but INSERT...SELECTinstead:
insert into sbsincome (incomekey,flightkey)
select
MAX(incomekey)+ 1 AS incomekey,
116040 AS flightkey
from sbsincome
March 7, 2011 at 7:44 am
mick i'm afraid i'll end up sending you to do some reading; i don't have a handy SQL 2000 solution to paste here for you;
as i remember it, if your...
March 7, 2011 at 7:18 am
you posted in SQL2000; are you limited to using sql 2000 for this solution?
sql 2005 introduced the row_number() function, which makes it really easy to do; your page would just...
March 7, 2011 at 6:40 am
not with openquery, but the linked server has an EXECUTE AT command that allows you to do some things;
i've created real tables, bu tnot temp tables(except inside a full set...
March 6, 2011 at 7:58 pm
I believe that by default an installed instance does not listen to the default port of 1433.
take a look at your configuration and see which ports it is currently listening...
March 6, 2011 at 9:46 am
CREATE TABLE #temp (
NEWVALUE varchar(100),OLDVALUE varchar(100) )
Update MYTABLE
SET COLUMNA = COLUMNB
OUTPUT
INSERTED.COLUMNA,
DELETED.COLUMNA
INTO #temp(NEWVALUE,OLDVALUE)
where COLUMNA <> COLUMNB
SELECT * FROM #temp
drop...
March 4, 2011 at 2:47 pm
a foreign key can only be created on a a unique or primary key.
that unique constraint or primary key constraint can span multiple columns.
so if you changed your table to...
March 4, 2011 at 1:54 pm
the other option isusing locally declared variables. then the compiler cannot use parameter sniffing;
something like
CREATE PROCEDURE AVOIDSNIFFING(@Param1 int=0,@Param2 datetime = NULL)
AS
DECLARE @localParam1 int,
...
March 4, 2011 at 1:16 pm
i might consider doing it this way...
migrate all the data except the blob/images themselves, and then migrate the images 1000 at a time so i can see progress and have...
March 4, 2011 at 1:11 pm
you should be able to attach the mdl/ldf files as a new database name. I'm a little afraid that if the database was in use by SQL server, that the...
March 4, 2011 at 12:21 pm
nope; you'll have to grab a backup, restore it as a different db, and compare the two tables, migrating the good data to replace the unwanted changes;
SSMS uses implicit transactions,...
March 4, 2011 at 11:59 am
definitely my first instinct, the parameter sniffing issue, is what i would check first. what you are describing is a classic symptom.
does your stored procedure have default values for any...
March 4, 2011 at 11:24 am
it really depends on the application that is connecting;
For example, I have a dozen tabs open in SSMS to various databases;each tab shows up as a sessionID; they all...
March 4, 2011 at 9:54 am
Viewing 15 posts - 7,981 through 7,995 (of 13,460 total)