user accounts changed
Hi,The company changes the users account from .org to .com.Now no one is able to login locally. Only "sa" is working.The error that I am getting is "cannot generate sspi context"How do i resolve...
View Articlendf & mdf files are bigger in size
Hi,My mdf file is 168 GB and ndf file is 22 GB.What shall I do to reduce their space??I ran the command sp_usedspace, and this is what I got :Please advice...Regards, Kunjay Shah
View ArticleTrying to install SQL 2012 Std on Win 8.1Pro - Fails right away with no log
When trying to install MSDN SQL 2012 Std 64 or x86 on Windows Pro 8.1, i get an error immediately with no information posted to the summary log. Screen shot of error. Just Modal dialog with "SQL Server...
View ArticleStore Proc
Hi folks, I’m trying to write a store proc that will take tyre sizes from dropdown lists and the customer postcode from a textbox. Everything works ok but I would like to take only the first 2...
View ArticleExporting table data into text files
I got a request to export the data from about 85 tables into 85 text files. I assume that they will want a header row and some delimiter character. This is a process that must run every night by a sql...
View ArticleRebuild Index
Hi All, In one production environment "Rebuild Index" job is running every night. In weekdays it takes less than 1 sec but on Sunday it took 60 mins to complete and in next sunday it took 120 mins to...
View ArticleQuery to get details of blocking and deadloack recorded in a table
Hi, whenever any blocking or deadlock occur in the server i have to record that information in a table with the query which is causing the locks with the login name.. Any query for this?
View ArticleHelp with Sql query
I am writing a sql statement for a report when i run the query it doesn't execute i have left it running for over an hour and to no availHeres the code: select DISTINCT user_firstname +' '+...
View ArticleHow to get any update and delete happening in database
Hi, I need to capture the insert, delete and update operation performed by AD group users in the database. How i can capture it ?
View ArticleRegarding OUTER JOIN
I'm reading a SQL Server book.I don't understand LEFT OUTER JOIN and RIGHT OUTER JOIN.According to this book, LEFT OUTER JOIN is illustrated like following.A LEFT OUTER JOIN will preserve all of the...
View Articleinsert into oracle_table (column1) select column1 from ms_sql_table
Hi all, how do I export data from ms sql table into oracle table ? begin insert into oracle_table (column1) select column1 from ms_sql_table; commit; end;
View ArticleHow to generate date month-wise from start date untill end date ?
How to generate the second table from the first table ?
View ArticleJob history
Hi ,Can one please provide to script to find job history with run_duration,all steps duration for particular single job.thanksShashikala
View ArticleCan column default value be based in another column?
I have table Employee with two columns: [EmpCode] and [Dept].Is it possible that [Dept]'s default value be some CASE statement that can be two possible values? If [EmpCode] begins with 'H' then [Dept]...
View ArticleCreate Procedure only if it does not exist.
Maybe I am missing something or making too much of it. But I cannot figure out how to create a procedure only if it does not exist.We restore db from a backup file. the backup file has the most current...
View ArticleHow to sort specific column when using GROUPING SETS in SQL Server?
If I remember correctly, in SQL Server, it is not recommended to use "ORDER BY" when there's already a GROUP BY GROUPING SETS.I have two columns: [UPC#] & [Description] both are varchar.My grouping...
View ArticleIs it advisable or practical to run SQL Agent with Account from another domain?
A SQL Server in domain A needs to mount databases downloaded on a weekly basis to a second SQL Server, in domain B.Right now, the two domains, which were deliberately separated for security, have no...
View Article