Viewing 15 posts - 5,266 through 5,280 (of 7,505 total)
With sqlserver it doesn't work as with msaccess !
declare @myvar int
set @myvar = 15
select ... from myobject where thecolumn=@myvar
With odbc this would mean you define a commandobject,
type=storedprocedure
commandtext='select ... from myobject...
February 4, 2008 at 7:47 am
Can you test what happens if you alter the colums to nvarchar(max)?
This datatype is prefered in sql2005.
February 3, 2008 at 10:17 am
TheSQLGuru (2/1/2008)
February 1, 2008 at 8:07 am
As always when "big brothers" are watching ... shivers in the spine :Whistling:
I've also tested at 32-bit Dev Edtn SP2 CU5 on 2-way XP sp2.
Same issue. :crying:
February 1, 2008 at 7:22 am
You could off course include a
NET USE ... user:yyy pasword:yyy
don't forget to clean up after teh copy !
NET HELP USE provides more info
February 1, 2008 at 6:47 am
The tests I performed were using SSMS2005.
At the client I also did install sp2 + CU5 !
(client installs are forgotten for updates way to much)
February 1, 2008 at 6:31 am
I've tested your scripts at SQL2005 DE sp2 CU5
and SQL2000 PE SP4
with no problem at all.
these are results:
SQL2000 PE sp4
(1 row(s) affected)
col1 col2
-----------...
February 1, 2008 at 6:15 am
if you want to use xp_cmdshell, you'll have to open it at sqlserver instance level ! (which I do not advise !)
We use a SQLAgent job to perform the backups.
The...
February 1, 2008 at 5:19 am
Oh certainly a huge yes regarding SP-release :exclamationmark:
Why, because IMHO a SP is considered to be a stable release, tested well by the manufacturer. Certainly worth a general test and...
February 1, 2008 at 3:49 am
There are the resulte of the test I performed :
(sql2005 dev edtn SP2 CU5)
set nocount on
-- is "Ad Hoc Distributed Queries" enabled ? if not, enable it
declare @SQLConfigOption varchar(256)...
February 1, 2008 at 3:32 am
I'm very sorry to have to tell you that it fails with partitioned objects on SQL2005.
I've tested it on an x64 EE SP2 CU2 4-socket-dualcore 16Gb
I have added the...
February 1, 2008 at 2:08 am
Phil, Chris,
Indeed no discussion regarding the use of target variables.
The point is, will its content be correct during the setbased work
if the variable is used more then once in...
January 31, 2008 at 6:31 am
Very good article, nice testcode. :w00t::cool:
There may be some testing needed regarding parallelism,
maybe for now just add a OPTION(MAXDOP 1).
The only remarks I would add to the conclusion is...
January 31, 2008 at 3:59 am
Just replace the @var with the column name in the select clause.
I tend to test with @-variables so there is no residue left behind afterwards.
Glad you figured it out 😉
January 30, 2008 at 11:57 pm
IMO Bulk Insert (check BOL) is what might serve you better.
e.g.
BULK INSERT mydb.myschema.myobject
from '\\UNC_path\myobjectdata.txt'
WITH
( FIELDTERMINATOR = ''
--,CODEPAGE =...
January 30, 2008 at 1:21 pm
Viewing 15 posts - 5,266 through 5,280 (of 7,505 total)