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

Format a column containing time stamp entries to yyyy/mm/dd

SELECT s.FirstName + ' ' + s.LastName as [Student Name], g.Grade, p.Programs, g.InsertTime FROM Student s INNER JOIN dbo.SRSubmitGrades g on s.StudentUID = g.StudentUID Inner JOIN Programs p on...

View Article


Log backup with truncate only option

Hello everyone..I have learned in a blog that the below command on execution empties the log without actually backing it up. And i am confused on reading that."BACKUP LOG DB_NAME WITH TRUNCATE_ONLY"So...

View Article


sql 2008 Issue restoring transaction logs....

** Update: I performed the same steps on the corresponding Dev and things worked as expected. Only  our prod environment uses SnapManager for Sql (NetApp) and I'm beginning to suspect that may be...

View Article

Authentication Issue, When Profile ReCreate

Hi,i face authentication issue in SQL Server 2012 Evalution after i login in new account.Take a look situation and what i did.1) I install SQL Server 2012 in Member Server (Server 2012 Standard).2)....

View Article

How to execute a SP with TVP

Hi,I'm a beginner in learning SQL, I'd to pass more than one value to a SP, so made use of the TVP. my SP looks something like this, how do I add the TrainerID's while executing this SPCREATE type...

View Article


Create Database on the server using VB code

Hello All,The following code create a Database on SQL Express on my PC.  I wish to create a database on the server NOT on my PC.  What changes must I make to the following code to create the database...

View Article

update

hi, want to update record  in tabole .I have two records which are having same ServiceId and DAyoftheweek,one thing uncommon is Services='IdleTime' can i write like this update DetailsTable set...

View Article

AdventureWorks

I am confused about the relationship between PurchaseOrderHeader and VendorI can see a one to many relationship between these table but I don't see the keys fieldsVendor has...

View Article


SQL server 2008 R2 installation dissappears in middle and cannot able to...

I m unfortunately deleted some sql server files in my personal computer and i am unable to open sql server again . I though to delete all .  When i am uninstall one sql server one file is remained and...

View Article


how toRetrieve date in sql server if date = now date

I have in sql table column name "Datumpåmin" type date "yyyy.MM.dd."I want to make a query if date i Datumpåmin = now datelike this command  ("SELECT Action, ([var]), ([Date]), ([hours]) FROM mam WHERE...

View Article

guest account status

1) is there a single SQL query for 2008 MSSQL to list the guest account status in all databases on a SQL Instance2) is guest an actual account, i.e. a login, or is it more of a concept? If its an...

View Article

function retun from string

In my function, i use 2 parameters and i am getting result as null. kindly suggest to get the correct data CREATE TABLE [dbo].[Table_Prod]( [Id] [int] NULL, [Code] [nchar](10) NULL ) ON [PRIMARY] GO...

View Article

Problems with Software versions deploying Web App and DB (ASP.NET, Windows...

Hello, I would like to get some advice and to find the best solution for my project.I am creating the database and web application which going to be for user interactions with database.Database and web...

View Article


Access sql server FileTable from other machine

HI ,I have created FileTable and I can access Filetable directory from local machine.However I am not able to view directort struction from other machine.e.g. Below is directory sturcture for...

View Article

update two tables

Hi ,I have two tables details table and emptimesheet table .below ia my aspxdesign for details table                  sun datedropdown1  starttime  endtime   bf  luch  dinner  totaltravel...

View Article


need sa password set by Web PI for gallery app install

I am a newbie just trying to get up and running in .netI installed VS2012 Express via Web PI.  The "packages" seem to also include many versions of SQL Server:SQL Server Express 2008 R2 SP2 Microsoft...

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


Image may be NSFW.
Clik here to view.

Cannot find Microsoft SQL Server Management Studio Express 2005

My server cannot find Microsoft SQL Server Management Studio Express.  i need to query in DB .How to call Microsoft SQL Server Management Studio Express ?

View Article

Converting character to Unicode/HTML equivalent

Hi I have a application that inserts data into a SQL table, the table has a <body> column contains HTML for example:<p style="margin: 0cm 0cm 12pt;">ñ</p> I need a method to pick up...

View Article

how to check which user and what time ms sql server services are stoped

Hi team,end users complaining unavailability of sql server, when i checked it was down and i started manuallynow how to check which user and what time ms sql server services are stopedthanksprakash gr

View Article
Browsing all 7129 articles
Browse latest View live


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