Viewing 15 posts - 10,051 through 10,065 (of 13,469 total)
Jason does your string always have exactly two items, or is it a long string where the first five items are SSN/name/address, and comma delimited 6 thru N are items?
you...
January 29, 2010 at 11:58 am
also look into SQLRecon;
it's free and does a very thorough scan of all IP's on your network, looking for SQL in multiple ways.
January 29, 2010 at 11:53 am
i think he's asking is it a good practice to make columns NOT NULL and insert default values, vs leaving them nullable.
as usual, the answer is "It depends"; this is...
January 29, 2010 at 10:26 am
starting with the obvious, did you select * from sys.traces? maybe it's a server side trace someone has created?
select * from sys.traces
--results
id status path ...
January 29, 2010 at 9:02 am
Ken for me, what i end up doing is still creating a PK on an identity column, ie "ContractID",
and having a unique constraint on the columns that make a unique...
January 29, 2010 at 8:49 am
i think one problem is you are joining the same table 6 times, when it is not necessary:
SELECT a.ID, RTRIM(LTRIM(a.ID)) as fID,
a.demID,
b.mid AS gp,
c.mid AS op,
d.mid AS oom,
e.mid AS...
January 29, 2010 at 7:42 am
there's two concepts you'll want to use here to get the desired results:
using a CROSS JOIN can give you every possible combination.
using a LEFT OUTER JOIN can show you...
January 29, 2010 at 7:33 am
the recommended way is to use the count of the rows in the indexes to get the number of rows; it's already materialized, and much faster than querying each table...
January 29, 2010 at 7:24 am
yep, since openrowset doesn't accept variables,(?right?) you'll be stuck with a cursor to go thru the table of file names, and dynamic SQL to do the openrowset and shredding of...
January 28, 2010 at 6:53 pm
it really depends on what you are doing with the filename; they came into your temp table in a set based operation...could be thousands of file names potentially;
your example did...
January 28, 2010 at 6:42 pm
i think it's just your DIR command:
exec master.dbo.xp_cmdshell 'dir c:\CIC\*.jpg /b'
*.jpg for each jpg file
/b for the brief directory style...just the file name
January 28, 2010 at 6:25 pm
the database schema is the whole collection of scripts for the create tables,views,procedures, functions, etc, which should include the foreign keys of course.
foreign keys and well named columns are a...
January 28, 2010 at 5:06 pm
paul of all the shared hosting i help friends with or have for myself, none give me the ability to run jobs; most do not even let me run backups.
i'm...
January 28, 2010 at 1:35 pm
jadonr (1/28/2010)
Works perfectly! I appreciate you trying to look out for me by using those extra safeguards - very nice of you.
What do I need to change to get...
January 28, 2010 at 1:17 pm
jadonr (1/28/2010)
Thank you for the advice, but creating a view that features the calculation, or adding a persisted calculated column to my table won't really serve its purpose in my...
January 28, 2010 at 12:30 pm
Viewing 15 posts - 10,051 through 10,065 (of 13,469 total)