Viewing 15 posts - 5,776 through 5,790 (of 13,460 total)
Mandeep Dulai (3/16/2012)
Excellent script! Currently migrating to a new SQL Server and this has saved me a ton of time. Thank you!
glad it helped you out!
Lowell
March 16, 2012 at 8:58 am
start with sys.indexes, and you have to join sys.index_columns and sys.columns
select
object_name(IDX.object_id),
IDX.name,
cols.name,
* from sys.indexes IDX
INNER JOIN sys.index_columns IXCOLS
ON IDX.[object_id] = IXCOLS.[object_id]
AND IDX.[index_id] ...
Lowell
March 16, 2012 at 8:57 am
is the server an express instance , where remote connections are not enabled by default?
is it the default instance or a named isntance, and is the SLq broswer service running?
from...
Lowell
March 16, 2012 at 7:44 am
it looks to me like the cost of SQL Server 2008 starts at around $3,000 dollars...well maybe 6K for a dual proc multi core, 12k for a Quad Proc multi...
Lowell
March 16, 2012 at 6:20 am
weston_086 (3/15/2012)
ALTER TABLE [dbo].[test] ADD DEFAULT ((convert(int,convert(datetime,'12/31/2099')))) FOR [id]. it will set default...
Lowell
March 15, 2012 at 3:13 pm
asc files are just plain old text files. open them up in notepad...you'll see the extension doesn't matter, the contents are plain text, the same way .txt files are.
Lowell
March 15, 2012 at 3:09 pm
well, you should store dates in datetime columns. you end up wasting a lot of time converting int values to dates and back again when it is not...
Lowell
March 15, 2012 at 2:23 pm
well in theory, you split the column on the space betwen the words...
but the issue is, "you cannot tell the which is the "middle" name between "James Tiberius Kirk" and...
Lowell
March 15, 2012 at 1:59 pm
my version, which accepts a dynamic number of words, splitting them by the space between words:
CREATE PROCEDURE [dbo].[CategoryName] @SEARCHSTRING varchar(1000)
AS
DECLARE @COLUMNNAME VARCHAR(128),
...
Lowell
March 15, 2012 at 1:56 pm
Lynn Pettis (3/15/2012)
SQLKnowItAll (3/15/2012)
Lowell (3/15/2012)
no need to cross post to multiple forums it fractures the answers you get and makes posters duplicate others work.
the "Recent Posts" link shows us...
Lowell
March 15, 2012 at 1:40 pm
sorry gang, link is fixed.
Lowell
March 15, 2012 at 1:37 pm
duplicate post.
no need to cross post to multiple forums it fractures the answers you get and makes posters duplicate others work.
the "Recent Posts" link shows us everything.
continue the thread here:
http://www.sqlservercentral.com/Forums/Topic1267763-391-1.aspx
Lowell
March 15, 2012 at 1:28 pm
i've done what you are asking in another post...if you followed the netiquette, as ColdCoffee suggests, I probably would have posted the solution.
in the meantime, if you search the forums...
Lowell
March 15, 2012 at 1:11 pm
there's a number of threads here on SSC where the requirement is to remove public permissions in order to comply and lock down a SQL server to DoD standards (google...
Lowell
March 15, 2012 at 12:55 pm
first, you don't need a trigger...you could simply add a check constraint to prevent that.
ALTER TABLE product1 ADD CONSTRIANT CK_COST_VS_SELL CHECK(costprice <= sellingprice)
your trigger assumes only one row being inserted,...
Lowell
March 15, 2012 at 10:38 am
Viewing 15 posts - 5,776 through 5,790 (of 13,460 total)