Viewing 15 posts - 10,201 through 10,215 (of 13,461 total)
Joe-420121 (12/21/2009)
The following procedure is OK?1. Create Table [backup12212009] with BIGINT Indentity
2. using SSIS export data from old table to [backup12212009]
3. Delete old table
4. Rename backup12212009
Can do as above?
if there...
December 21, 2009 at 1:01 pm
that is exactly why you'd want to not store a date as a number: 20091221 you can kind of read as a date, but what if the value is 20091250...
December 21, 2009 at 11:26 am
you'll want to use the GUI in SSMS;and change it to bigINT; the GUI will create a new table witht he proper structure, migrate the data, migrate all the foreign...
December 21, 2009 at 11:02 am
it depends on what your "number" is going to be;
SQL natively keeps the number of days since 01/01/1900:
select convert(decimal(12,0),getdate()) = 40167
select convert(decimal(12,4),getdate()) = 40166.5383
after the decimal point, it is the...
December 21, 2009 at 10:56 am
fill factor depends on the flavor of inserts, so it's not something that can use a rule of thumb/assumption;
for example, if the primary key of a table is date...
December 21, 2009 at 9:29 am
thanks for the input guys;
for my first pass of fixes, i used gvim, but it's not the kind of utility i'm used to...i prefer text editors that open multiple files,...
December 21, 2009 at 9:22 am
dates can seem tricky until you get used to them.
never convert a date to varchar or anything...always keep them in datetime .
this will give you the Monday of the current...
December 21, 2009 at 6:08 am
Pete there is a difference between Joining and using a WHERE statement to limit your results; I'm thinking that you are including the WHERE statement as part of the join,...
December 20, 2009 at 8:40 pm
As Jeff's link pointed out, you can easily script the enabling and disabling of xp_cmdshell;
if you had checked BOL before posting a question here, you'd have found it yourself, and...
December 20, 2009 at 5:37 pm
good job posting details Bryan! that gives us just what we need for testing.
with the table definitions, we can emulate what you are doing, and provide solid comprehensive answers.
now we...
December 18, 2009 at 12:45 pm
details, that's the key.
you said you want to put XML in the following folder:
c:\AllSites\romah.com\ folder of target
does that mean the web server and the sql server are the same...
December 18, 2009 at 12:10 pm
if you are getting a specific error, we really need to see the code in your triggers; that's where the error lies; it sounds like you have declared variables in...
December 18, 2009 at 11:45 am
still fairly easy: you jsut add the dependancies and the columns to teh same query:
SELECT
CASE
WHEN object_name(tr.parent_id) IS NULL Then 'Database'
...
December 18, 2009 at 11:14 am
here's an example of what Jason was talking about; my SandBox database had a database trigger, and I thought that deserved mentioning and a demo of special handling:
SELECT
...
December 18, 2009 at 10:53 am
the best way is to switch to your own cursor, and do whatever you were going to do to the specific tables;
here's a generic example; note how you could exclude...
December 18, 2009 at 9:47 am
Viewing 15 posts - 10,201 through 10,215 (of 13,461 total)