Here's a few of the new posts today on the forums. To see more, visit the forums.
|
SQL Server 2017 - Administration |
Collation issue - We have to migrate some databases to a new server. Originally the old server is using server collation Latin1_General_CI_AS. and hence the databases created on that using the same collation Latin1_General_CI_AS. Now we want to new server to be collation: SQL_Latin1_General_CP1_CI_AS, since it will future host some additional vendor product. Is it going to be […] |
SQL Server 2017 - Development |
Unable to move log file to non-default location - I am managing a migration project for several thousand databases across dozens of SQL servers. These db imports generate very large log files for each database. Once the import is complete, the log file size needed for each db is very small. In order to avoid needing very large log file drives on each server, only […] |
Order of a task path - Hi There, I'm trying to work out the best way to work out a workflow to a particular set of tasks I have in the database. Basically in table1 I have the name of the task and the id. In table2 I have the id and the previousid in a table. What I am trying […] |
SQL Server 2016 - Administration |
Error adding a monitoring server to a log shipping configuration - I am setting up log shipping for a database and have hit an error at the "monitor server" stage. I used the GUI to create the T-SQL that needs to be executed and it generated: EXEC msdb.dbo.sp_processlogshippingmonitorsecondary @mode = 1 ,@secondary_server = N'SECONDARY' ,@secondary_database = N'DBNAME' ,@secondary_id = N'' ,@primary_server = N'PRIMARY' ,@primary_database = N'DBNAME' […] |
SQL Server 2016 - Development and T-SQL |
What's the Best Way to Pass Table Driven Sensitive Info in SSIS? - Hi, I have a requirement to loop through several SFTP sites, grab files, and then perform various actions on them in SSIS. All SFTP connection information will live in a table in a SQL Server 2016 database. I've got the overall structure of the SSIS package working well. However, I'm now at the point where […] |
Stored Procedures - Hi, I created a stored procedure that creates a temporary table, fills it with data, and runs a select and returns the data from the one column in temporary table and then drops the temporary table. How can I grab the results from the stored procedure and use it in a query. I was to […] |
Administration - SQL Server 2014 |
Database last used - Is there a way to find without having access to database when the database was last used? My understanding is Without having SQL access it won’t be possible to get when the database was last used or updated right? |
Development - SQL Server 2014 |
Performance of left outer join - I'm looking for a general answer. In my experience, the performance of inserting data into a table from the results of a LEFT OUTER JOIN query is significantly worse than running two queries - one to populate the destination table followed by update of the destination table using INNER JOIN. I thought SQL Server was […] |
SQL 2012 - General |
How to Trace ASYNC_NETWORK_IO - We have just converted a SQL Server box from a physical server to a vm. I noticed a significant slowness when connect to Object Explorer in Management Studio. My trace shows the duration is over 2 seconds. The normal duration to connect to other servers are around 200 milliseconds. The SQL profiler trace show there […] |
SQL Server 2008 - General |
sp_runwebtask error after migration from SQL Server 2000 - Unfortunately I am required to migrate and old database from SQL Server version 2000 up to 2017. The first step I have taken is to migrate to 2008. Apparently everything is good, except for one table, on insert will throw an error could not find stored procedure sp_runwebtask. The offending table was created using good […] |
View crashes SQL Studio - Hi all, I have a query which is working fine. However, when I attempt to put it into a view SQL always crashes. There is no error message when I run the view other than the crash window: SSMS - SQL Server Management has stopped working. However, if I try save the view, the error […] |
SQL Azure - Administration |
Backup retention upto 10 years in PAAS - Hi Experts, Do I have to pay additional amount to retain my PAAS SQL database backup for 10 years in Azure? Thanks Brijesh |
Azure elastic database jobs - Hi, I am trying to use this approach to automate some tasks: https://docs.microsoft.com/en-us/azure/sql-database/elastic-jobs-tsql It mentions: "The credential needs appropriate permissions, on the databases specified by the target group, to successfully execute the script. " CREATE MASTER KEY ENCRYPTION BY PASSWORD='password'; CREATE DATABASE SCOPED CREDENTIAL myjobcred WITH IDENTITY = 'jobcred', SECRET = 'password'; GO CREATE DATABASE SCOPED […] |
SSRS 2016 |
Using a partial lookup of a value to conditionally set the color of a textbox - Hi there I have an SSRS 2016 report which set the colour of the text in a cell. The look up expression uses a dataset called 'StatusColour' which is defined as follows: SELECT 'Available' AS [Status], 'Black' AS [Colour] UNION SELECT 'Allocated' AS [Status], 'Blue' AS [Colour] UNION SELECT 'Complete' AS [Status], 'Green' AS [Colour] UNION SELECT 'InProgress' AS [Status], 'Blue' AS [Colour] […] |
General |
if/then or case return? - Hi folks. I get the if/then and case keywords for conditionally setting field values, what I don't get is how to get a return variable. So I say if var1=1 then var2=1 But I have no idea what's been done, how do I return that var2 has been set to 1 or left alone? […] |