Viewing 15 posts - 7,531 through 7,545 (of 13,469 total)
Jeff Moden (5/24/2011)
May 25, 2011 at 4:55 am
what a pain that file is.
this is what i did:
i converted all teh damn unix LF to vbCrLf.
then i used this script...i had to tweak it a few times,...
May 24, 2011 at 3:03 pm
indenting code is your best friend.
while there's no hard and fast rules, i tend to do something like this:
columns indented compared to the select
joins are indented from the FROM...
May 24, 2011 at 2:27 pm
could it be users from the domain that are not explicitly added as logins? so if the domain group myDomain\Dev was added, people get in with no login?
so you'd have...
May 24, 2011 at 11:16 am
pretty sure it has to do with the import package defaulting to a 50 char field, and the data for example, on line 1284 is 54 characters in length.
"Beautiful Zion...
May 24, 2011 at 11:06 am
not sure it's possible...you need the backup to complete before you can determine it's size....
That makes me think it cannot be done before the backup is complete...unless it's based on...
May 24, 2011 at 9:51 am
patelekta (5/24/2011)
May be you will get your answer on http://ektaraval.blogspot.com/2010/07/query-to-generate-create-index.html
ekta your example only works if an index has one and only one column in it's definition...otherwise it scripts two definitions...
May 24, 2011 at 9:20 am
also note there are different types of bar codes, so you need to know which style you need:


May 24, 2011 at 7:38 am
check the data in ProductSuppliers.Margin; maybe the margin is stored as a percentage?
so maybe it should be < 0.35 instead of < 35.00?
also, check the datatype.. why are you comparing...
May 24, 2011 at 7:14 am
do you have an additional instance of SQL on that server? maybe the isntance is using that mdf and not the default instance?
if you
select * from master.sys.sysaltfiles
do you see...
May 24, 2011 at 6:41 am
Nice code Gianluca;
I see how if you are rounding up, it works perfectly; I added that to my snippets for future use, thanks.
May 24, 2011 at 6:19 am
also, the file path might have something to do with it; even with my windows login, I cannot write to the Root of the C:\ drive without "running as Administrator"...
May 24, 2011 at 5:49 am
yep, it's scripted for one specific database id:
exec sp_trace_setfilter @traceidout,3,0,0, N'60' -- AND DatabaseID = 60
it's from this non-obvious snippet:
set @intfilter = 60
exec sp_trace_setfilter...
May 23, 2011 at 3:18 pm
piece of cake, it's only syntax.
the WHERE statement goes AFTER the output...not before it:
CREATE PROC CarProductionStateUpdate
@CarID INT,
...
May 23, 2011 at 3:15 pm
wierd; do you have any filters in the trace script that might not be the same, you know, like filtering for a specific databaasename or dbid, and it doesn't exist...
May 23, 2011 at 2:50 pm
Viewing 15 posts - 7,531 through 7,545 (of 13,469 total)