Query for difference between dates
I know I can use the DATEDIFFHow can I write it if StartDate and EndDate are in these formats?StartDate: 2006-09-20 00:00:00.000EndDate: 2013-09-20 18:20:53.000I want to find the number of days...
View ArticleDatabase tables
I am trying do the below. I can create simple table like in steps (a) and (b) but not sure how to apply points (c) and (d). I am new to this sql thingy so I will appreciate any help out there: Create...
View ArticleSQL Server FileStream Shared location
I unexpected delete SQL File Stream Shared location, is there a way to restore the Shared location. When i try to open SQL File table from SSMS Explore File Table Directory it works on Server, but it...
View ArticleFull Back up - Size
Hi,I have a database of around 250 GB.So what would be the random size of the "full Back-up" of the 250 GB Database??Regards, Kunjay Shah
View ArticleI need help with an average calculation
I have a query that gives back the StartDate, Endate, the count and the number of days between the start and end days.I'm looking to get the average. Keep in mind there are multiples of these dates....
View ArticleHow to insert multiple records with a single query?
Hi,I've to save a huge number of installments with their other information such as due on blah blah. Now, I want to add the all of these information at once with a single insert query.How can I do that?
View Articletable structure
hi,in my application using asp.net table with four columns id,desc,quantity,price with 5 rows .id descdription quantity pricetxtbx1 txtbxdesc1 txtbxquant1...
View ArticleHow to get row count(*) for each table that matches a pattern
I have the following query that returns all tables that match a pattern (tablename_ and then 4 digits). I also want to return the row counts for these tables.Currently a single column is returned:...
View ArticleSQL Server Using Float Formats
I'm importing a field called that has a maximum value of 1 and a minimum of > 0 and < 1 into a sql server using SAS.The original datasource was an excel spreadsheet. SAS reads the value in as a...
View ArticleBooks Online hyperlinks not active
Hi. New user. Intalled 2008 R2 Express with AS successfully, but the BOOKS ONLINE feature I downloaded after the express install doesn't seem to be working. I can view the entire feature, but none...
View ArticleTFSEXECROLE
Hi Team,What is meaning of "TFSEXECROLE" as per my understanding TFSEXECROLE Means database reader and writer please correct me any thing wrong.Thanks in advance subu
View Articledetail installation steps of SQL server 2012 R2
Provide me detail of SQL server 2012 R2 installation
View ArticleSql query to fetch data based on date conditons
Hi All,We have to schedule a script that runs at 1:00 AM from Monday to Friday.The script will run a sql query ,that will fetch the data from sql database 2008 based on the below conditions.Case 1:...
View ArticleSQLIgnite tool configuration to capture Blocking and Deadlock in the instance
Dear All,We have SQLIgite tool and I want capture the blocking and deadlocks happening in the server,Please body suggest me how to configure the alert and how to find out the what queries causing the...
View ArticleSQL server database structure
Is it possible to create an 'XML file' from a SQ Server 2008R2 database structure?
View Articleback up & restore
Hi,I am trying to restore the same .mdf and .ldf files into the newly created database.But its giving me an error that its already in use and I cannot complete my task.Is it possible to do the same??...
View ArticleConfusion: Why was I prompted for Password and How can I use it to log in?
Good morning:I successfully installed SQL Server 2014 and I am able to access the System using Windows Authentication.However, during the installation process I arrived at this screen below: (See...
View ArticleMemory
Hi All,We have 16GB RAM ,64 bit server, ,here when i checked for properties for the server in general tab memory is 16380 MB, bit confused.Here how do I found how much GB is used by SQL SERVER and OS,...
View ArticleConnecting to external database
I have an instance of winserver 2012 on Amazon web services. The instance included a bundle of additional pre configured things. One was the SQL 2008 server express. I am working locally on my machine...
View ArticleTotally frustrated with SQL Server Express Install
Before updating my PC to Windows 8.1 I had a working VS 2008 environment and SQL Express 2005. Now that I have upgraded the OS, I am unable to get any version of SQL Server Express to work with my...
View Article