Viewing 15 posts - 5,746 through 5,760 (of 13,460 total)
yes, SSMS provides a built in GUI functionality to do that; it's highly configurable via checkboxes to determine what to script or not.
simply right click on the database and follow...
Lowell
March 21, 2012 at 7:47 am
With actually seeing the procedure itself, all we can do is offer basic advise.
if the Prof is skipping data, it is usually because a WHERE or JOIN statement in it...
Lowell
March 21, 2012 at 4:42 am
do you have a lot of defaults for the parameters, for example @datefrom dateime = NULL in your definitions?
it might be because of parameter sniffing exactly because of the defaults...the...
Lowell
March 20, 2012 at 1:07 pm
a serverside trace for DML changes is very lightweight; if you have it rollover you won't have to worry too much about log file sizes,a nd it may help you...
Lowell
March 20, 2012 at 12:41 pm
first guess:
does this return the same results as the two hour procedure?
SELECT
ent.document_version_id,
ent.[name],
ent.[value],
ent.entry_path
FROM mydb.dbo.entry ent WITH (READCOMMITTED)
LEFT OUTER JOIN
(SELECT
d.document_id,
MAX(dv.document_version_id ) AS document_version_id
FROM
Dot_Net_Installer_REP.dbo.document d WITH...
Lowell
March 20, 2012 at 12:26 pm
does a plan for this look any better?
Declare @param int
SET @param=5506
SELECT [this_].[EcomConfigurationId] [EcomConf1_3_0_],
[this_].[EcomEmailAddress] [EcomEmai2_3_0_],
[this_].[SecondryEcomEmailAddress] [Secondry3_3_0_],
...
Lowell
March 20, 2012 at 12:08 pm
I'm guessing that because the command sent was ...
WHERE [this_].[SiteId] = 5506
the 5506 has to be implicitly converted to the approriate type(the column it is compared to)
if you...
Lowell
March 20, 2012 at 11:28 am
go to Control panel>>Administrative Tools>>Services.
you want to make sure the service exists first.
if it doesn't, then you probably only installed the client tools.
if it does, look at the name of...
Lowell
March 20, 2012 at 10:26 am
is the datatype of the parameter passed also int, or is there an ISNULL(@param,0) used anywhere in the code?
Lowell
March 20, 2012 at 10:21 am
it's permissions still.
this is a common security misconception/"gotcha". The problem is that when you access any resource OUTSIDE of SQL server, like network shares, local hard drives and folders,xp_cmdshell,bcp with...
Lowell
March 20, 2012 at 10:02 am
gary.p.heath (3/20/2012)
Lowell
March 20, 2012 at 9:41 am
I think you'll be fine if you just add a little flexibility into your application for handling the building of the connection string.
for example, what should happen if i wanted...
Lowell
March 20, 2012 at 9:09 am
gary.p.heath (3/20/2012)
No, my program is a Windows Form with multiple Tabs that allows the user to update the database (yearly maintenance) and then process the...
Lowell
March 20, 2012 at 8:33 am
nope. a database connection would be part of the project, not the database or the database service....the application "assumes" it's there.
you would typically parameterize the elements required for the connection...
Lowell
March 20, 2012 at 7:52 am
without seeing the procedure itself, all i can offer is basic suggestions.
you might be suffering from parameter sniffing.
you might want to update your statistics.
the SET options (ansi_nulls, etc) between SSMS...
Lowell
March 20, 2012 at 7:43 am
Viewing 15 posts - 5,746 through 5,760 (of 13,460 total)