Quantcast
Channel: Forum Getting started with SQL Server
Browsing all 8979 articles
Browse latest View live

Validate data using ISDATE and STUFF

Hi All.Using ISDATE and STUFF how can i validate dates like 11201958Currently I can validate dates like 061408SELECTcast(stuff(stuff(RIGHT('0'+'061408', 6), 3, 0,'-'), 6, 0,'-') ASDATE)I am looking for...

View Article


SQL Server Login Error

I successfully created a sql login, but when i log on i get the following errorTITLE: Connect to Server ------------------------------ Cannot connect to Data-Lab. ------------------------------...

View Article


unique ID

Hi,how can we show only unique id from one table .below are two tablesSELECT [ID] ,[EmpID] ,[EmpName] ,[StartDate] ,[EndDate] ,[day] ,[date] ,[Service] ,[Venue] ,[StartTime] ,[EndTime] ,[Breakfast]...

View Article

SQL Server 2005 Analysis Services across domains

Hi, With SQL Server 2000, the Enterprise Edition was required to access Analysis Services across domains. Is this also the case in SQL Server 2005, that the Enterprise Edition is needed?  Thanks, S

View Article

Can not change run_value column in sp_configure option...

I need to disable remote access in my server.  I am running following query to make that change so that config_value and run_value columns in sp_configure result set should get updated.EXEC...

View Article


Making the execution optional

Hello all,I am using sql server management studio 2012. Please tae a minute or two to understand this problem, It's really important:(The scenario is :I have three table, Patient, patientAccount and...

View Article

SQL needs to go retro

I have the following SQL which works in SQL Server 2005, but I need to replicate the functionality for SQL Server 2000. Unfortunately, the "row_number()" and "with partitioned as" syntaxes don't exist...

View Article

Cannot connect to Sql Server 2012 from client Sql server management studio 2012

Cannot connect to Sql Server 2012 from client Sql server management studio 2012

View Article


How does one install a express sql server to run with Visual Web Developer 2008?

I successfully installed .NET framework v 3.5 and VWD 2008 on a new Vista laptop. When I want to add a Sql Server database to a website, errors tell me to install SS 2005 Express. MSDN SS 2005 Express...

View Article


How to get multiple sum values between two dates from single table?

How to get multiple sum (monthly and quarterly) values between two dates from single table  ...

View Article

How to get multiple sum values between two dates in single table

How to get multiple sum (monthly and quarterly) values between two dates from single table  ...

View Article

Intersect set operator

Hello everyone.Can we use INTERSECT set operator in a procedure or user defined function?-- Thanks and Regards Srikar Reddy Gondesi, Trainee SQL Server Database Administrator Miracle Software systems,...

View Article

Calendar in SQl Server 2008

Hi , I want to print a calendar in SQL Server 2008 based on the Month entered. I should not use date functions, how can i get a calendar without using date functions?Please help me with the code.Thanks

View Article


info

what are the best book to learn about sql server 2012 from scratch with some background on sql from oracle and db2

View Article

How to Open Or read SQL Server log file .ldf

 Hi all,How to Open Or read SQL Server logfile .ldf When ever we create database from sql server, it's create two file. (1) .mdf (2) .ldf.I want to see what's available inside the .ldffile.  Thanks,Ashok

View Article


month date

I have in sql table column name "Datum" type date "yyyy.MM.dd." I want to make a query if month date i Datum = now month ("SELECT sum([Ob4])'Ob4' FROM arb WHERE month([datum]) = MONTH(date)", cs) like...

View Article

UPDATE is not allowed error when trying to create stored procedure

One of our client's Train databases is getting the following error when we try to create a stored procedure that uses the UPDATETEXT statement:"UPDATETEXT is not allowed because the column is being...

View Article


About data reader permission

Is data reader permission to that database enough to give user  READ access on ALL objects (Tables/Views/Functions/Stored_Procedures) under that database ? or need something different?Thanks

View Article

simple query

what query to write to count the no of commas in a given string 'abc,xyz,def,pqr,lmn'?

View Article

How to create conditional update trigger in sql server

How to create conditional update trigger in sql server

View Article
Browsing all 8979 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>