Viewing 15 posts - 601 through 615 (of 1,344 total)
For what your doing Dts would take a little time.
so simple insert / select statements should work.
Declare @maxid int
Set @MaxID = select max(FieldID) from DatabaseA.dbo.TableA
Set identity_Insert DatabaseA.dbo.TableA on
Insert into DatabaseA.dbo.TableA...
February 7, 2006 at 9:21 am
There ya go, modify the query I gave you and it will work.
February 6, 2006 at 5:26 pm
If you execute a
EXEC master..xp_cmdshell @bcpcmd
It is actually starting up an other connection. the data is not available to that new connection only the connection that created the temp...
February 6, 2006 at 5:19 pm
We need a little more information on how your contribution table looks.
create table #Contribution (pk int identity, Contributorid int,
Amount money, ContributionDate datetime)
insert into #Contribution
select 1, 100, '1/01/2005' union
select 1,...
February 6, 2006 at 5:12 pm
Whatever your text qualifier is, you have that in your data.
If your text qualifier as " (Quote) one of your fields has actual data with "Quotes" in it.
February 6, 2006 at 4:58 pm
I am a little uncertain of what your asking.
First Sql server stores dates as 2 integers, first int = days past 01/01/1900, and second int = milliseconds after midnight.
if your string is...
February 6, 2006 at 4:09 pm
An easy tool to use is sql profiler.
Don't necessarily recommend for Production, but certainly can be used. You can select different events.
The scans event class will show you table, or...
February 6, 2006 at 4:02 pm
In books online it discusses how to estimate the size of a table.
The "Formula" you show is way too simple. There is a space cost for each different datatype, and...
February 6, 2006 at 1:33 pm
What was your error message?
make sure ian user has access to the db.
February 3, 2006 at 2:29 pm
There is no way to "Mask" the value natively in sql. There are several articles that introduce encrypting.
Do a search on this site, and you will find tons of information.
I...
February 3, 2006 at 9:42 am
@DQV4 decimal(18, 0),
@DQV5 decimal(18, 0),
Your error is in your parameter declaration.
decimal 18,0 is equal to an 18 digit number with no digits to the right of the decimal
it should be...
February 3, 2006 at 9:34 am
Even Better.
Select *
From Information_Schema.columns
where column_Name = 'YourColumnNameHere'
February 2, 2006 at 2:56 pm
He is correct, but the method your using to return the record inserted is not good.
Is the Event_Id field an identity?
If so you would be more wise to use
select scope_Identity()
as...
February 2, 2006 at 12:21 pm
I know thats not possible in sql 2000 but not sure in sql 2005
Backups are always taken from the primary db. you should take the db backup, for that day,...
February 2, 2006 at 10:18 am
Viewing 15 posts - 601 through 615 (of 1,344 total)