Viewing 15 posts - 286 through 300 (of 321 total)
sp_changedbowner
June 2, 2005 at 9:32 am
Answer#3 check if a string STARTS with a char in [0-9][A-Z]
2 is not good because fails on combination of letters and numbers
4 check against 1 char
1 is correct
June 2, 2005 at 9:13 am
SET DATEFORMAT 'dmy'
SET NOCOUNT ON
create table #tblOperations(Date Datetime,Funds int,SubScriber int, Parts int)
insert into #tblOperations VALUES('10/1/2005', 1, 100, 10)
insert into #tblOperations VALUES('15/1/2005', 1, 200, 30)
insert into #tblOperations VALUES('20/1/2005', 1, 100, 40)
insert...
June 1, 2005 at 8:11 am
SET DATEFORMAT 'dmy'
SET NOCOUNT ON
create table #tblOperations(Date Datetime,Funds int,SubScriber int, Parts int)
insert into #tblOperations VALUES('10/1/2005', 1, 100, 10)
insert into #tblOperations VALUES('15/1/2005', 1, 200, 30)
insert into #tblOperations VALUES('20/1/2005', 1, 100, 40)
insert...
May 31, 2005 at 10:30 am
"A previous post says that dates make good indexes. I tend to disagree."
Hmm I couldn't believe either so I analyzed Remi's code which came to agree with that.
I...
May 31, 2005 at 9:22 am
Or if you use the same server but different DBs try using full names
INSERT INTO DB1Name.dbo.MyTable1
SELECT * FROM DB2Name.dbo.MyTable2
WHERE ....
May 31, 2005 at 8:43 am
It seems like you actually want to move data from 1 db to another ... (I might be wrong)
You can try to use :
BCP to export/import data
Linked Servers
May 31, 2005 at 8:39 am
You need to try to separate the cause:
--the returned time is big because of the "time to get connection to SQL server"
or
--the retuned time is big because of the...
May 25, 2005 at 3:02 pm
SP_MAKEWEBTASK might help you ...
you can pass as the output file a UNC path that resize on the needed server ( you need permissions for the server account to write...
May 25, 2005 at 2:49 pm
Try to open the file with notepad for ex and replace the "" with a single " or empty space if you don't need them to be imported
May 25, 2005 at 2:31 pm
Actually in real code I m returning more than 1 value.
But like it happens ... something changed and the code suddenly works ... I can't figure out what it is
before...
May 20, 2005 at 8:45 am
sp_MakeWebTask might be a better solution for you than retrieve the recordset to VB and generate the file
May 17, 2005 at 2:23 pm
{call ?=myproc ?}
this is if you want the result of sp
April 15, 2005 at 7:22 am
"{call myproc ?}"
? param that you have to pass
April 15, 2005 at 7:18 am
You can make a view and transform in view each field to CHAR
select
c_code,
c_type,
c_perio,
CAST(LTRIM(STR(c_prd_yr int)) as CHAR(4)) ,
CAST(LTRIM(STR(c_prd_mon)) as CHAR(2)) ,
.....
)
or make 1 field by adding them in DB
April 8, 2005 at 11:46 am
Viewing 15 posts - 286 through 300 (of 321 total)