Using 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 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 ArticleDifference between varchar and varchar(max)?
Hi,What is the difference between varchar and varchar(max)?Anujit Karmakar Sr. Software Engineer
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 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 ArticleUser guest does not have permission to run DBCC checkprimaryfile
We recently upgraded our server to a new machine and Server 2012. In the process the domain name was changed. Now when I try to attach a database in ssms on my workstation I get the above error. I...
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 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 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 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 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 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 ArticleHow to find out average files i am getting every day in a month?
How to find out average files I am getting every day in a month?
View Articlehow to deploy sql server Database
how to deploy or publish office app with sql server Database
View ArticleHow administrate sqlserver OLTP with TFS
HelloI'm web developer and We are thinking how do a good integration: sqlserver with TFS, We need that when I change for example a store procedure, the tool run the change in the database.
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 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 ArticleCreate user defined server role
Hi,Could anyone help me out.I want to create a user 'passadmin' the user must be defined a server role so that the user can only change the password for the other users(logins). My environment holds...
View ArticleWindows update quits working giving me access error when installing SQL...
I am at my wits end. I've been developing on Windows for 20 years but have never run across something like this. On Windows 7 Pro I need to install the SQL Server 2014 demo (SQLServer2014-x64-ENU)...
View ArticleReferencing Composite Primery Key
How can I reeference a composite key in a foreign keyCREATE TABLE SATICI( SATICI_KODU CHAR(10) PRIMARY KEY(SATICI_KODU), ADI VARCHAR(50), TELEFON_NO CHAR(20), ADRES CHAR(100) ) CREATE TABLE...
View Article