Viewing 15 posts - 1,501 through 1,515 (of 13,447 total)
have your dba create a procedure that features EXECUTE AS OWNER that adds missing permissions.
have the procedure loop through each database on the dev server, and do a classic if...
August 31, 2015 at 6:24 am
bumping this for the morning, hopefully someone may remember what counts as a transaction per second.
August 31, 2015 at 5:49 am
you altered the table and added a new column [date1]
the table [Metrics].[dbo].[x64_Restore_Metrics_All_Temp] now has four columns, but your insert has only three.
if you do insert into table without a column...
August 28, 2015 at 1:03 pm
i think it's just a select of three queries, which inserts into the new table.
INSERT INTO NEWTABLE(ColumnList)
SELECT RecordID,ManagerID,ManagerApprovedDate,'ManagerApproved'
From OriginalTable WHERE ManagerID IS NOT NULL UNION ALL
SELECT RecordID,ClerkID ,ClerkApprovedDate,'ClerkApproved' ...
August 28, 2015 at 12:10 pm
i built this proc from some examples i found here on SQLServerCentral:
IF OBJECT_ID('[dbo].[sp_dbspaceused]') IS NOT NULL
DROP PROCEDURE [dbo].[sp_dbspaceused]
GO
--#################################################################################################
--developer utility function added by Lowell, used in SQL Server...
August 28, 2015 at 9:49 am
mar.ko (8/28/2015)
Ed Wagner (8/28/2015)
August 28, 2015 at 9:36 am
looks to me like the issue is in the complicated select that you left out of the post...
you not getting the data you expect, so it's gotta be in the...
August 28, 2015 at 8:50 am
the command prior to WITH MyCTE AS(...
must be terminated with a semicolon. that's probably where the issue likes.
that issue makes a lot of people precede their [WITH] to feature...
August 28, 2015 at 8:35 am
nothing within SQL. SQL doesn't do files, technically.
SSIS or SSRS subscriptions can export data to native excel format.
otherwise, not really.. you have to use something external, like a CLR, Excel...
August 28, 2015 at 8:27 am
my example i provided made sure the valuewas converted to date type. As Luis pointed out, converting the date to a string in this format:2015-04-01 is now ten characters, with...
August 28, 2015 at 8:21 am
SQL's bcp does not create native xls files.
it only creates flat files with the delimiters you specify(tab delimited/comma delimited/custom delimited.) so your file is a text file with the...
August 28, 2015 at 8:15 am
Michael Meierruth (8/28/2015)
Has anyone ever done the reverse operation? I.e. a table from a web page saved to an html file loaded into a SQL Server table.
I user a CLR...
August 28, 2015 at 6:28 am
we'd have to see your trigger. is your trigger enabled? is it referencing the procedure by full path, ie master.dbo.yourproc?
August 27, 2015 at 11:37 am
aleksandra 81219 (8/27/2015)
I have multivalue parameter @multiple_weeks with can be for example '20010101,20010108,20010115'
and i need to execute my procedure for 20010101...
August 27, 2015 at 8:20 am
you want to create a SQL job that calls your procedure.
that job has a schedule, so you can call it once day/hour whatever.
you can leave it to run forever, or...
August 27, 2015 at 7:41 am
Viewing 15 posts - 1,501 through 1,515 (of 13,447 total)