Help with troubleshooting performance
HiI have been looking at a SQL agent job that runs.The issue is that it joins a lot of tables as well as a lot of views. If I then try to look into the views, these views also reference views.Does...
View ArticleAccess to SQL Server - How to Auto Update Multiple Tables Daily
I have got 4 MS Access Database Files, which have got 3 Tables each, means Total 12 Tables which gets updated with new data every evening, by an external application. Means new data gets appended to...
View ArticleDDL AND DML STATEMENTS IN SSIS
I have a situation to write this code in SQL to used in SSIS.if table1.username in (table2.username) (and table1.status <> not active then revoke table2.username permissions on server and update...
View ArticleCreating Mutliple Logins
I had a need to test something recently and wanted to create multiple logins. Other than using a batch like this:[code="sql"]CREATE LOGIN TestUser1 WITH PASSWORD = 'UserT3stUn0';CREATE LOGIN TestUser2...
View ArticleHow can I rewrite this in better performance
HiHow can I rewrite this in better performance : select *, ( SELECT TOP 1 Code FROM T2 WHERE T2.Id=T1.Id ORDER BY Id DESC ) AS T2_Code from T1(Top 1 is problem for me)
View ArticleSSIS packages are reporting complete before they've finished loading
We've recently upgraded to SQL Server 2014, and are now using SSIS integrated with Visual Studio. We have a SSIS project which contains about 20 packages which are nested in Sequence Containers and...
View ArticleCan I get the user windows login when using Sql server login authentication ?
Hi everyone,Oracle and Teradata are able to capture the windows/client login that connects to their database with a functionnal ID.I've searched around and I don't think MS SQL can do this...I...
View ArticleRemove memory optimized filegroup
I read this:http://www.sqlservercentral.com/Forums/Topic1568262-32-1.aspxWhich says you must drop the database to remove the filegroup.I deleted all the objects and then backed up the DB and restored...
View ArticleCLR works with Trustworthy OFF and no Asymmetric key
We have a curious situation on a SQL 2014 DB, with Trustworthy set to OFF. There is a job that runs a data export to a file via a CLR. The assembly as PERMISSION_SET = EXTERNAL_ACCESS, however there is...
View ArticleSomebody explain Checkpoint to me
I'm using the below SQL to delete about 110million rows in batches of 100,000It's working fine in that if I stop the script, everything up to that point stays deleted.The problem I have is that twice...
View ArticleSql Server Agent
Hello everyone,Does anyone know if sql server agent run .bat files? Regards,Jonathan
View ArticleExport String from XML-Field in Database
Hi EveryoneI need some help please.I have to extract the String INTERNET-EXPORT MOTIVE VRS, in the second line, in a single column in the SQL-Database. the xml is in the Databasecolumn...
View ArticleActive Directory Set-up not on laptop
Client asks me to fix his SQL Server Database. They give me a back-up so I can sort out things at my own desk, they rather not have me over till I completed the job.So I restore the database and...
View ArticleSplit and Transform Words
I have a problem I'm having trouble solving.I have an application I write a textbox: 'SQL SQL' MICROSOFT 'SQL SQL'When I click a button, I wanted to receive as stored procedure parameter: @ String =...
View ArticleUsing "Try-Catch" and "Rollback" on read only stored procedure
Hello All,I have a confusion on using "Try-Catch" and "Rollback" on stored procedures.In general as understand if we have a stored procedure that does operations like inserts or updates, it makes...
View Articleneed urjent output
There is 2 tables 1st table student_reg (col- id, stu_name) ,2nd table student_details (col-date_of_birth and interview_date,stu_id)student_reg data.1 Anna2 smita3 smita 4 madhuri5 madhuri6 madhuri7...
View ArticleSSIS doesn't drop table
I have a T-SQL Statement Task to create table every time the package run. It doesn't return error but it doesn't drop the table either. The data is appended every time. The code is working fine in SQL...
View ArticleHow to find out if a column value exists in other column
Dear SQL experts,Thanks for looking into my question. I have a scenario where I need to find if values of column-A is part of the values of column-BFor Example, Lets take a table like below, ContactId,...
View ArticleTRANSFORM VARIABLE - ADD OPERATOR OR
I have a text box on a web application that allows the user to type what words they want to look. In the first version of the web application the user wrote the words he wanted and was wanted on the...
View ArticleSpatial Import of Census Shapes
Working within SQL Server 2014 the old standby of shape2sql doesn't seem to be working. I even tried the trick of copying the DLL and renaming it. Still no joy.So, I'm looking for alternatives. I need...
View Article