Database Test Mail is Failed
Hi All,I have configured database Mail in Sql server 2012 but couldn't able to send the test mail.1) Enabled "broker"2) Enabled "Database Mail XPs"3) Selected "Public"4) Tried both Basic and Anonymous...
View Articlesimple function or proc will also do
I need to pass 2 parameter to SP/function to return dateI will be passing the tableName and DateValue in return I should be getting the max(dt_date) from tableName can anyone help me in building this...
View Articleexcel file is not opening
I have a file for excel 2010 that is not open. It says Excel cannot open the file'abc.xlsx'because the file format or file extension is not valid. verify that the file has not been corrupted and that...
View Article2005 database and log file locations
Is there a SQL query to list where exactly the database and log files reside for all databases on an instance (sql server 2005)?
View Article2005 all users
Is there any useful query for sql server 2005 to list all server level logins (be them windows authentication or sql server authentication)? And some clue on the server level roles assigned to them...
View Article2005 last backup and location
Is there a simple query for SQL Server 2005 to list the last time a backup ran for all databases in an instance, including the path where the backup was written too? So just to include database name,...
View Articlesql server 2005 compatible with OS
Team,Windown team is upgrading the os from windows server 2003 to windows server 2012, and we have "Microsoft SQL Server 2005 Enterprise Edition" Build: 9.00.4207.0" installed on these server,Please...
View Articleexport maintenance plans
Although I dont work directly with sql server, is there anyway for configuration management purposes you can export what is configured in a maintenance plan, via an SQL query? We need to document how...
View ArticleBusiness benefits of Database consolidation
HiIn my company there are number of SQL server installed standalone or along with application server. I have proposed consolidation so I am asked to give justification for business gain. Could you...
View Articleget data between two months
Hi,In emptimesheet im trying to get total hours from jan to march for particular employee.EmpID is unique ,Total is totalhours.select Count(Total) as TotalHours ,EmpName from EmpTimesheet group by...
View ArticleHandling special character ' in table column of datatype string
Hi,I have a tabl ewhich contain many columns. Out of which 1 column in Remarks column of datatype varchar.Now we have a sql query which inserts value in this table. Sometime we gets a value like...
View ArticleGet currently executing ad hoc queries
Hi All,I need a sql server script to extract currently executing ad hoc queries.I need only currently executing and ad hoc queries only.Else it could have been done with sysprocesses,sp_who2RegardsRahul
View Articlecharset for slovak characters
Hi all,as from title implies, I wanna know which charset should I set to table for slovak characters ... I have problem especially with characters ' čť ' .. can you help me, please?
View ArticleConnection failed: SQLState:'01000' SQL Server Error:67 [Microsoft]ODBC SQL...
Help,setup a new sql server 2012 on a windows 2012r2 server to replace old sql server 2005 on an old windows server 2003 machine. When i test the ODBC connection locally on the server it works fine,...
View ArticleImport from Excel-Mapping Specific cells
I've used the SQL Import/Export tool to import simple Excel data in the past. These were often simple column to table imports...easy mappings. I currently have an Excel spreadsheet kept by our Sales...
View ArticleWhat is a query to return matching dates?
What query can I use to give back records that have matching dates?
View ArticleDB-Library BCP issue with SQL Server 2014
Hello,My application uses DB-Library (ntwdblib.dll) to communicate with SQL Server 2014. We are having issues calling bcp related functions like bcp_init which always returns FAIL status. Our...
View ArticleHow to get the Database name from the backup file
Re: How to get the Database name from the backup file(This is not the exact scenario. Using for simplicity.)I have a directory of .bak files created from SQL Server1. I want to restore them to SQL...
View ArticleQuestion on database refresh.
I have a doubt regarding DB refresh, Please advise if my understanding is correct, when we refresh a database the Log file grows the size of database size? Example:Suppose the database size is 10 GB,...
View ArticleCan an asterisk be used in an Append Query or some other way?
Hi friends,Is there anyway to merge two or more tables reflecting the view with all the columns in such a way that similar ones are used ones and additional ones also included in a way other than using...
View Article