Viewing 15 posts - 10,756 through 10,770 (of 13,462 total)
just to clarify, if you run the script above, ti doesn't do anything except add a stored procedure...
if you call the procedure, ie EXEC sp_AddMyTrace, that creates/starts the trace and...
July 26, 2009 at 9:30 am
just once. run it just once.
sp_AddMyTrace creates a log for all statements in all databases.
it is limited to 100 meg of data before it starts rolling over to reuse the...
July 26, 2009 at 8:07 am
duplicate post.
no need to post the same question in multiple forums, the "Recent Posts>>Posts Added Today" makes sure your question will be seen.
follow the thread and answers posted so far...
July 26, 2009 at 8:00 am
I know if you had done it the opposite way, where you granted the user or role minimum rights like db_datareader and db_datawriter, then you had to do GRANT VIEW...
July 26, 2009 at 7:17 am
something like this should get you started; you have to join the table against itself to get the date differences.
SELECT game_id,DATEDIFF(day,MinSet.date,MaxSet.date)
From (select home as x, min(date) as date from YourTable...
July 25, 2009 at 5:37 am
i currently have to support both SQL and Oracle at the shop that I work.
because even little things like naming conventions for parameters(SQL requires parameters to start with @, Oracle...
July 25, 2009 at 4:58 am
encrypted fields have to be nvarchar or sometimes varbinary data types for any encryption to work, depending on the encryption method. they also have to typically be much larger than...
July 25, 2009 at 4:43 am
not an expert on SSIS, but as you identified,the row_number function can do what you want, for sure...maybe stick everything in a table and do the row_number in a Script...
July 25, 2009 at 4:03 am
running profiler to create a trace is resource intensive, but a server side trace has minimal impact, and can help track down your deletes. search for trace on this site,...
July 25, 2009 at 3:40 am
still not clear to me either, can you give a non-pseudo code, concrete example of the expected results?
July 24, 2009 at 4:54 pm
isn't Crystal still client-server based, so you have to install Crystal on every machine that will run a report, vs SSRS which is a web server HTML based reporting system?...
July 24, 2009 at 11:10 am
two single quotes in a row are the "escape" sequence to insert into a quote delimited string:
SET @sqlquery = 'UPDATE Allotuser SET ' + QUOTENAME(@accno) + '=''' + @acc +...
July 24, 2009 at 9:55 am
a rewrite of your proc to have better error messaging:
ALTER PROCEDURE [dbo].[USP_UpdateAllotUser]
(
@accno NVARCHAR(5),
@acc NVARCHAR(50),
@userid NVARCHAR(50)
)
AS
BEGIN
SET NOCOUNT ON
BEGIN TRY
IF (@accno '' OR...
July 24, 2009 at 9:26 am
ahh now i see; it's kind of obvious.
best practice is to always print your sql before you execute it:
this is the SQl statement your code creates:
UPDATE Allotuser SET ([Acc5])=hello where...
July 24, 2009 at 9:20 am
oops... researching now...what was the erro message specifically...error numbers not much help.
July 24, 2009 at 9:13 am
Viewing 15 posts - 10,756 through 10,770 (of 13,462 total)