|
Here's a few of the new posts today on the forums. To see more, visit the forums.
how to execute timestamp querry in sql server 2008 ?
- I am T.E. I.T. student & these sem we have dbms subject but i am so confussed how to write date...
Retrieve a substring
- Dear,
I want to find the time portion from the following string.
"Feb 18 2013 3:35PM"
please tell me the T-SQL to retrieve...
does index also change the output?
-
I was in an assumption that index would only change the execution plan and not the actual output of the...
Adding an extra file to TEMPDB
- We have a sever with 2 physical processors and 8 logical ones. We are seeing quite a lot of blocking...
Statistics - ' Auto Update Statistics ' - 'Auto Update Statistics Asynchronously'
-
I have option [b]' Auto Update Statistics ' set to true[/b] and option [b]''Auto Update Statistics Asynchronously' set to False [/b]....
send data in small size by backup is possible
- I have 2 branches database A,B same structure and objects different only in data i must take backup every day.but...
Backup Failed but backup file is created
- Hey guys,
I have an issue with backing up a 80GB database over the network,
Here is the error:A nonrecoverable I/O...
Access tasks in Data Flow Task dynamically
- Hi friends,
I have a package where the number of columns in DB tables could be changed. I want to change...
Database Corrupt
- Hi , Last week we have a server crash in the datacenter .
one of our customers use a SQL Database.
When I...
SSRS 2005 Parameter validation
- Hi there,
I am writing a simple report using SSRS 2005 where user selects the start date and end date , and...
i cannot connect to sql server 2005 and 2008
- [size="4"]when i want connect it ,it takes this error,,please help[/size]
[img]http://www.kurdupload.com/images/obAZS1362407690/b1.JPG[/img]
[img]http://www.kurdupload.com/images/0LIAMQ1362407574/i2.JPG[/img]
Issue with OSQL
- Hi Friends,
Requirement : i have a table which contains around 40 columns of which name is a column which i use...
High work_queue_count and THREADPOOL WAITS
- Hi
I am tuning the DB activity for an application that sends a high number of transactions in a very short...
how to stop the package based on a condition?
- Hi,
Based on the value of a variabale getting set, I want to stop my SSIS package (successfully) without going to...
More help wit Sum, Pivot and so on...
- Hi!
First thanks for the help I got a couple of weeks ago! :-)
Now to my new proble that is to...
SQL error Connection.
- http://imageshack.us/photo/my-images/339/89149644.jpg http://imageshack.us/photo/my-images/4/36524814.jpg
When i Click start at "Service manager" they be like this .
Im using SQL 2000
=Sory my bad english
DTS - result to excel
- Hi Guys
I have created several DTS packages, and the data gets stored in csv flat file and get mailed automatically.
Now...
using locks in sql server 2005
- i have one table, concurrently multiple users are hiting the table through insert action.
i have placed trigger on the table...
Question on Replication..
- Can I setup replications between two disconnected networks..??
For example..my company is a Web Application Development company and they sell...
database metric
- Is it possible to produce any sort of database level performance metric in SQL Server. Let's say how many queries...
Huge Transaction on Database with Merge Replication, Simple Recovery Model
- We have a database which normally has a 100GB transaction log.
This database is a publisher in a merge replication with...
SQL 2008 enterprise to standard degradation
- Hi Team,
I have request from client to degrade few servers due to cost of enterprise edition.
Can you suggest me the...
How to uncommit the transaction and execute the next statement in the cursor?
- Hi Friends,
[code="sql"]
DECLARE @JurisID int, @CodedID int, @SrcCodeValueRef varchar(100), @SrcCodeDescr varchar(100), @SrcCodeValue varchar(100), @DecNumber bigint
SET @DecNumber = @Number
declare @result varchar(50), @chars...
SELECT list block with CASE?
- is something like this possible?
SELECT
CASE WHEN (@X = 1)
THEN
COLUMN1,
COLUMN2,
COLUMN3
ELSE
COLUMN4,
COLUMN5,
COLUMN6,
END
FROM TABLE1
An issue with my Execution plan
- I have a view.
I made some changes (included few CASEs in SELECT list for a business requirement)
i did a...
how to do this?
- create table temp(id integer, comments varchar(20), custom_id integer);
insert into temp values(1,'CEO comments', 98)
insert into temp values(2,'SEO comments', 99)
insert into temp...
confused With View , Function and Store Procedure
- i get confused where to use function , store procedure and view.plz help me
;-)
Identifying performance issues using Profiler trace
- Hi All,
I have been told that I would be given a production profiler trace to figure out the performance issues...
Just accepted a Sr. DBA job. Time for a gut check?
- Hi SQLSC!
Buckle up, I apologize in advance for the long post. In many ways, typing it out is as much...
Use parameter value in .csv output filename
- Table_1
[code="sql"]
ESTAB_ID ESTAB_CODE FORENAME SURNAME
1 9009001 John Jones
1 9009001 Mike Smith
1 9009001 Mary Yates
2 9009005 Ann Ennis
2 9009005 Kelly Homes
3 9009014 Harry Brand
3 9009014 James Casey
3 9009014 Chris Balls
[/code]
Table_1 contains a list of people belonging to different establishments. The ESTAB_ID is a unique sequential ide
partition_id VS. hobt_id
- Hello!
There is 2 columns in [url=http://msdn.microsoft.com/en-us/library/ms175012.aspx]sys.partitions[/url] view - [b]partition_id[/b] and [b]hobt_id[/b]. From my point of view/experience for any given row from...
SSRS. Parameters mdx script doesn't work with multi-value
-
Hi ALL,
I need your your help!!
I want to create a report with multi-value parameters with SSRS.
So, I wrote this mdx...
mirroring
- how to find the synchronisation of data of the previous month when the database is configured in mirroring ?
DateTime Rows to Columns
- Hi
I have something like a table of users and other table with dates and working time for the users, i...
Denormalising report from normalised nested source data
- Hi
I have an application that stores normalised and nested data. Each top level instance is identified by an instance Id....
GRANT VIEW DEFINITION
- Hi all
I am running the following on one of my DBs - I am using SSMS 2012 against SQL 2008R2
GRANT VIEW...
Searching for Solution
- Hello All, I have one query (it may sound stupid though). We have one SQL Server 2008 (Microsoft SQL Server...
Getting minimum of top n rows without using subquery
- Hi,
We use SELECT min([date]) FROM table WHERE [date] IN (select top(100) [date] from table order by [date]) query for selecting...
get the first and last day of any Year/Month
- Hi,
i have a view with two columns, lets say SpecYear and SpecMonth, both are integer.
How can I build two...
error in bulk copy
- Hi
I want to test some changes in the structure of a table and see the plan,I exported the data in...
SQL Server Error 233 Do i need to enable named pipes, now it is disabled
- Hi Expersts,
we are not able to connect to sql server with service account(SQL login) . This is SQL Server 2005. Any...
A network-related or instance-specific error occurred while establishing a connection to SQL Server
- Hi,
The below error is logged into application logs intermittently.But, when I review SQL Server errorlog, event viewer application log, system...
How to maintain two digit values in sp?
- Hi friends,
IF OBJECT_ID('Sp_Coded') IS NOT NULL BEGIN Drop procedure Sp_Coded End
go
CREATE PROCEDURE [dbo].[Sp_Coded] (@ParentTableName varchar(50), @ColumnName varchar(40), @CodeID int, @Number...
(Could not find stored procedure 'msdb.dbo.sp_dts_getfolder'. - sql 2005 - > 2008 R2
-
I have a package on 2008r2 and job on 2005 pointing to the package on 2008r2. When i run the...
MaxDOP Query Hint
- Is it possible to pass a variable for MAXDop as a query hint? My query below works when I set...
Query optimisation
- Hi
Can anyone help improving a query i have
I have a table with a list of phone numbers
Table1
Telephone
01212234567
01212234568
01212234569
01212234544
01212234517
01212234527
01212234537
01212234547
01212234557
Iam given 5 phone...
Group by help
- Hi all
This seems like a simple thing to be able to do but I am really struggling with it
Some...
Query Help
- below is the code
[code="sql"]DROP TABLE Class,Amount
create table Class
(
code int,
CName varchar(10)
)
create table Amount
(
code int,
Currency char(3),
Amount float
)
insert into Class
select 1 , 'ASD'...
DB Normalisation Help required
- I have the data as below. I need to normalise the table with this data.. can someone help me how...
FOR XML and trying to avoid nested cursors
- Alright, history first. I've got a bit of a mess I've inherited. Groups inheriting groups inheriting... you get the drift....
Custom order in SELECT
- Hi,
How could we change the order in SELECT command based on a custom semicolon delimited phrase.
We have :
[Letters]
----------
a
b
c
d
e
And based on...
Deletes taking long time
- I have a situation where I created I ran a query that generated about 32,000 individual deletes that I am...
XML issue converting table to XML
- Hi,
Thanks for your help in advance. I am trying to get the following data
[code="sql"]CREATE TABLE [dbo].[TABLE_XML1](
[ID] [int] IDENTITY(1,1) NOT...
Select full month number (with 0)
- Hi,
I use
[code="sql"]DATEPART(month, myDate)[/code]
or
[code="sql"]MONTH(myDate)[/code]
the resut is: 2 (if myDate is 2013.02.03). I would like return: 02
Do you have any solution for...
Guidance on table valued types.
- We have 1 table valued parameter (tvp) coming to GetXXX stored procedures. It contains only 1 column of type uniqueidentifier....
Grouping records by time interval
- Hi everyone,
I have been searching for a few days now to try to solve a problem, but without success. What...
UDF Help
- Hi Guys,
I want to create UDF. Below is my logic. Please guide me where i am wrong.
Alter Function [dbo].[udf_GPList](@EID int,@PID...
Time - Adding minutes and seconds
- I have the 2 columns with time datatypes.
select top 5 [Connect Time2],[totalTime2] from dbo.verizonDetails
Connect Time2 totalTime2
08:05:44.0000000 00:13:00.0000000
08:05:57.0000000 00:01:00.0000000
09:07:42.0000000 00:03:00.0000000
09:07:46.0000000 00:09:00.0000000
09:08:08.0000000 00:01:00.0000000
I want to add the...
Case Statement - DateDiff and DatePart
- I have been asked to come up with a case statement that gives me the date of birth, no I...
can this update statement be made easier
- I am running an update statement as follows
UPDATE dbo.BigTable
SET BigTable.Software_Version_Raw =
( CASE
WHEN dbo.BigTable.Software_Version_Raw LIKE '1.%' THEN '1.x'
WHEN dbo.BigTable.Software_Version_Raw LIKE...
Group by and Where clause
- Hi,
Please see below,
Table name : Log_table
Columns: Logid int, databasename varchar(30), tablename varchar(30), logdate datetime
Query 1:
Select max(logdate) from log_table
where...
Select.. where column1 in (@var)
- What am I missing?
Why would this work
SELECT *
FROM #MainQuery
WHERE column1 IN ('Value1','Value2')
and this not?
declare @Var varchar(100)
set...
Sql Server 2005 doesn't connect for windows xp SP3
- I have installed sql server 2005 in Windows XP SP3. Installed successfully but
[b]a) server didn't connect gave error message...
Replication Newbie
- Hi all
I have set up snapshot replication between 2 instances on the same server (For testing)
The snapshot job runs...
dbmirrroring
- can two mirroring sessions on single production server between diferrent sql instances use same endpoint and same port numbers
eg:
DBprincipal1....DBMirroring1 endpoint...
Installation Error: Volume does not belong to the cluster group
- I am installing SQL 2008 R2 cluster in windows 2008, I got the following error:
The volumne contains SQL server data...
resource governor calculation for min and max utilization
- Can anyone explain how to calculate the resources for different resource pools
gone through BOL bit not actually getting the nderstnding?what...
SQL Server doesn't accept remote connections.
- Hello,
I am trying to use my SQL Server in my Perl application. I am hosting my Perl code on an...
Problem with Database mail
- We have SQL SERVER 2008 R2,which Database mail does not work properly.When I try to send test mail,it says it...
CPU considerations for multiple instances
- I've been researching this and haven't found much info so I'm not sure what most people do. Consider a server...
setup SQL alert notify DBA about windows event log error
- Is there a simpler way to setup SQL alert in SSMS to notify DBA when an error log is written...
CDC and LSNs
- Hi peeps,
bit of a departure from my norm I am looking at using CDC from source systems to populate a...
Does the adrenaline rush ever subside when rebooting a DB server.
- I work in a small shop as the accidental DBA and for the first time rebooted our production DB server...
Can't Kill SPID “Transaction Rollback in Progress”
- I'm running into frequent Blocking on a Development Server.
I have been correctly the code or making recommendations to prevent this...
Database Backup Issue
- Hello All,
I'm running SQL 2008 R2. I have an intermediate issue with my backup for this one database. Some days...
Can not connect to SQLSERVER
- Hi,
i've installed SQL Server 2008 R2 in my system and after that i've updated the 'sa' account using the...
70-466
- Can anyone give me any guidance on training kits for 70-466 exam?Thanks in advance for your help.
BI Specialist vs SQL Developer
- Hi all. I was recently offered for SQL developer position and BI specialist position, and I would like to get...
Execute a sql job from AS400 command line
- I am trying to use this command to execute a sql job from an AS400 command line. I am having...
An error has occurred while establishing a connection to the server
- [i]An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may...
OPENXML error converting nvarchar to numeric.
- Please take a look a the following.I do a select for OPENXML but it returns with
Server: Msg 8114, Level 16,...
Service Broker between database on different instance but same domain.
- Can SSB be enable between databases on different instances on same domain/network
without the use of Certificates, Keys etc ?
Risks/Best practices on execution policy
- While it would be easy to set the execution policy to unrestricted, or possibly set it to unrestricted in an...
Today's Random Word!
- HI
When you woke up today, or logged-onto Opera Forums, you may have had a dream, a thought, a scene...
Are the posted questions getting worse?
- Is it me, or are the posted questions getting worse these days?
I just read a post by someone apparently in...
"My Recent Posts" - Can not find
- I used "My Recent Posts" to check if I replied to and others replied to me at the topics I...
SSRS. Parametres mdx script doesn't work with multi-value
- Hi ALL,
I need your your help!!
I want to create a report with multi-value parameters with SSRS.
So, I wrote this mdx...
Report Errors for a view employees on Report Server, Not in VS2008
- I have a report that prints earnings statements for over 4,000 employees. Of those 4,000, 110 are aborting with the...
Reporting Services Error - There is not enough space on the disk.
- Anyone have an idea why I get this error? It occurs several places such as when I try to click...
Quantum
- We are replacing our tape backups with something "better", my backup expert tells me that Quantum is the best, especially...
Database describing databases and references to tables
- Hello, I asked a question at dba.stackexchange.com [url=http://dba.stackexchange.com/questions/35855/database-describing-databases-and-references-to-tables]here[/url], that's not getting a lot of interest. Now that it has fallen...
Doubth in using Default Constraint...
- Hi,
I am creating a new Database. In this i will have a column for to store current Date.
I can specify...
Twice number of reows loading from sql table to Excel.
- Hi,
I am having sqltbl which contains empid,Lname,Fname,Sal records.
I am simply fetch all records from table to excel using ssis.While execting...
How to automate validation process
- Hi,
We have the following scenario: We receive CSV files every month for which SSIS packages were built to process the...
SSIS package for DWH Load
- Hi All,
Please suggest the best option for designing SSIS package for DWH load.
Here is the scenario.
I have two star schema...
How to attach/install an analysis services database
- Hi guys,
I need some help with attaching an AdventureWorks analysis services database. I am trying to attach it but am...
|