extract and convert the date part
ApplicaitonIDApplicationdate2612FSK_LHER_Sep 9 2013 2:45:51:877PM_26122902FSK_AKBH_Dec 19 2013 12:15:19:450PM_29022902FSK_GUOBE_Dec 19 2013 12:15:21:870PM_29022902FSK_GUIBE_Dec 19 2013...
View ArticleUsing function in select statement
Hi,CREATE FUNCTION [dbo].[udf_testFunction] ( @value int ) RETURNS int AS BEGIN-- Declare the return variable here declare @returnValue int set @returnValue = @value*2; return @returnValue; END GO...
View ArticleIs it possible? A table that contains 1000 columns?
Hi,May I create a table that contains 1000 columns each having datatype of varchar(5000) in sql server?I was asked the question in an interview. Have anybody any idea?Anujit Karmakar Sr. Software Engineer
View ArticleHow to determine if SQL Server 2008 is setup to be Unicode
HiI am trying to determine if my sql db is setup as Unicode or Non-Unicode.I ran the following command: SP_HELPSORTFollowing is the output: Latin1-General, case-insensitive, accent-sensitive,...
View ArticleDifference between varchar and varchar(max)?
Hi,What is the difference between varchar and varchar(max)?Anujit Karmakar Sr. Software Engineer
View ArticleDefault startup UserID
My SSExpress2012 database uses SQL Server authentication. I am the SysAdmin and the ServerAdmin. Whenever I open a connection in SSMS, it opens up with the same UserID (not mine) and I have to select...
View ArticleSSAS - Invalid Directories
Hi,I earlier had two instances on SQL Express Edition on the official laptop. Thereafter, I installed the enterprise edition of SQL Server 2014 some days ago but installed just the Engine and created...
View Articleobject state manager
I've imported a few tables from an MS ACCESS .mdb database to a new MS SQL server database. I made a data entry form with a C# program code, but when I try to save the canges made in my form, the...
View ArticleIP configurations while doing Sql clustering on windows server 2008 R2
Hi there,I am doing a demo practicle for two node windows clustering later which I will be using for Sql clustering and HAG for sql 2012.As I am novice in this and have little knowledge of Networking I...
View ArticleOpening BIDS causes disk queue length to shoot up
Hi,I have a SSIS package and I noticed that when I open it in Visual Studio the Avg Disk Queue Read Length briefly shoots up on both my data and tempdb drives. Is there a potential issue here or how...
View ArticleSave queries of views automatically
Hi all,i have a problem: i want to save a lot of queries of views. The views are already existing, and i want to save the queries of theese views. I don't know how to do it.Now i do it this way:right...
View ArticleCreates Wishes Web Application Project On .Net Using Sql Server 2014?
Created Greetings Wishes Web App Project Using Language : .NetDatabase: Sql Server 20141)What are modules on that2)DataBase tables
View ArticleHelp diagnosing a sporadic long running proc
We have a nightly ETLV job that our 30 clients run every night. Depending on the size of the client, it can run from 1 to 7 hours. We have one client, clientX, where the etlv job takes about 7 hours....
View ArticleDatabase Tables for Live Streaming Web Application Project?
Modules for Live Streaming Web Application-->i want to modules on Live streaming App-->Data Base Tables
View ArticleLogin error
Hi ,we are getting login error as 3336/2492 Thu Dec 11 13:38:29 2014 abcdODBC.C689[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'abcdef'. - SQLSTATE: 28000.When I googled for it,...
View ArticleWhere can i see the .mdf or .ldf files for mysql database?
Hi i have created a database in mysql workbench. Now i want the .mdf or .ldf files for my project deployment. where can i see this files in my folders. I have searched in this folders.C:\Program...
View Articleno Show_plan
Hi,from what I can see, this gets executed on my SQL Server but I can't see any show_plan for it. Should there be one?I ask because I suspect it's leading to a performance issue and I'd like to...
View ArticleProcess identification
Hello, i have a simple perhaps stupid question.I am using active monitor in sql server 2005 from which i can see if one process is taking a long time to finalize and answer to the client that made it,...
View ArticleCompare field value in one table to all field values in another table
Hi everyone,I have two views, both containing account numbers (field is called ACCT_NBR in both views)VIEW_1 contains several thousand records, and VIEW_2 contains only 15.What I would like to do is...
View ArticleHow to view xml query plans graphically
I am using sp_whoisactive. It creates a query_plan column that contains xml. when i click on it, it launches a new query window where i see the xml. not sure when it is not launching the...
View Article