Viewing 15 posts - 166 through 180 (of 2,651 total)
IF @DB1 = 'TestDB' USE TestDB
ELSE IF @DB1 = 'ProdDB' USE ProdDB
don't know what tool you are using to execute the above -...
June 11, 2024 at 7:14 pm
IF @DB1 = 'TestDB' USE TestDB
ELSE IF @DB1 = 'ProdDB' USE ProdDB
don't know what tool you are using to execute the above - but on...
June 11, 2024 at 5:03 pm
Thanks for the feedback.
Jon,
This is a code deploy script file, I'm trying to create. Hence, need to set DB context first then run a few DDLs (see below)
Example snippet:
SELECT...
June 11, 2024 at 5:01 pm
Cluster STXL on ( MANDT, TDOBJECT, TDNAME ) instead of creating all those separate non-clus indexes. If those key columns are not inherently unique, and you can add a...
June 7, 2024 at 6:55 pm
I'd like to run an SSIS package asynchronously from a SQL Agent job step through the the [SSISDB].[catalog].[create_execution] and [SSISDB].[catalog].[start_execution] stored procedures. I need the target package to be...
June 7, 2024 at 3:14 pm
give us the actual explain plan so we can look at it - images do not help us identify potential issues.
June 7, 2024 at 12:32 pm
sure you can - ask a good developer on your company to do it
and you can always try it yourself by googling and trying/testing/adapting the many many examples you can...
June 4, 2024 at 5:53 pm
the registry setting you changed applies to SSAS queries - so it would never work for what you wish.
and it seems that this functionality was broken starting with v18 -...
June 4, 2024 at 7:38 am
Thanks
Steve for the Json references, Phil for the validation, Frederico for the date suggestion.
My workaround is storing it in an nvarchar(max) variable, replace the wanted character and write it...
June 3, 2024 at 4:00 pm
but this being JSON why not use a date format that is more standard (ISO8601).
any software reading the file will most likely parse the value correctly, and you won't...
May 31, 2024 at 1:32 pm
you have already been advised in your other threads around this process to review how its done and scrap it - you are keeping a wrong approach to a problem...
May 31, 2024 at 10:41 am
Product name is not required. - however if it is supplied through the UI as "SQL Server" the other fields (@provider, @datasrc, @location, @provstr, and @catalog ) don't need to...
May 24, 2024 at 1:22 pm
you mean which one of these?
and when...
May 23, 2024 at 9:23 pm
thats an invalid format file for what you need.
see https://jahaines.blogspot.com/2009/10/exporting-binary-files-to-file-system.html for a full example of what you can do - and you should likely reconsider using bcp for this -...
May 21, 2024 at 11:11 am
yes tempdb has been subject to significant changes. majority were done with 2016 - see https://learn.microsoft.com/en-us/sql/relational-databases/databases/tempdb-database?view=sql-server-ver16
May 15, 2024 at 10:34 pm
Viewing 15 posts - 166 through 180 (of 2,651 total)