I have created SSRS report which has many overlapping objects, the output in PDF format seems to good but in word format it is not giving the required output.
I have date coming to one page as a string in the following format"May 4 2005 12:00AM" I need to query one of my tables using this date in combination of other nondate values. How can I convert this date into valid sql server datetime format before I query a database tables Please help
I have a table which stores date-of-birth in varchar 19861231(yyyymmdd). A view takes this data. I want to store this date as mmddyyyy in the view. How can we achieve this?
I have a set of csv files and a set of Format Specification files for each of the csv files. I need to convert the csv files into another format of csv files as specified in the Format Specification files. All the columns of the input csv files do not have a mapping with the columns of the output csv files. How can I achieve this using SSIS ? This is an urgent requirement. Please reply asap. Thanks.
I am stuck at one place, where I have to convert CSV format file data into SAP IDOC format file. In SSIS we don't have any such SAP adapter (though we have .NET Data Provider for mySAP suite [SSIS SAP Adapter] but this is still not fully supported by Microsoft, plus it doesn't have feature to convert data into IDOC format) that can do this. Can someone here please provide me some pointers on any third party adapters available in market to do this job or if anyone has already developed some custom approach to achieve this task?
Your quick response on this is highly appreciated.
we are having the same code base in both the environment but we have different version of SQL Server Version(Env 1 - SQL 2012, Env 2 - SQL 2008). We are getting the expected result in Env - 1 but not in the ENV -2. So we tried to get the SQL trace for the web request we found that Date format getting changed.
2012 - Date Format in the SQL Trace for the request '2015-09-10 00:00:00' which is working as expected. 2008 - Date Format in the SQL Trace for the request 'Sep 10 2015 12:00:00:000AM' which is Not working.
Complete SQL Trace for Request. Evn - 1 - SQL Server 2012 exec dbo.usp_GetWorkQueue @ClientName='CLT',@HasFilter=1,@FacilityName='',@StartDate='2015-09-10 00:00:00',@EndDate='2015-09-18 00:00:00',@OrderDirection='D',@StartIndex=1,@PageSize=20
dear all can anybody help me soon.... i am using visual studio 2005 webapplication based on sql server 2005 database. i can get one date from sql using one query. I am selecting my field based on following code CONVERT(varchar, Oman.Positions.Datum, 9) AS LastUpdate this case my output is May 4 2008 3:19:45:000AM..... this output is correct but from this output i want to avoid millisecond part. ie i want the output like May 4 2008 3:19:45 AM.... how i can do this regards
Hi..I have an application which uses Sql Server 2000 and .NetMy user can view date in dd/mm/yyyy format but at the back, i send date to the Sql Server in mm/dd/yyyy fromat.But the problem is with the date format that Sql Server uses to store.It smoe times accept date in dd/mm/yyyy fromat and sometimes in mm/dd/yyyy format.I am wondering why this is happening?I have used SET DATEFORMAT....but i have to use it befor every query.Even i don't know how to set dateformat each time with vb.net program.I think i can avoide this burden for server if i can set a date format in mm/dd/yyyy fromat.What should i do?
Hi Everybody, I have SQL Server running on Win NT. My question is : Is there a way to change the format Of date type fields (datetime and smalldatetime) from the US Date format which is for ex: July 13 1998 to 13 July 1998. I know I can use several functions to do it elsewhere, but I want it to become my default format for the new columns I create in new tables.
I'm getting alot of date converstion trouble with my application when the end user's regional settings is not the same as the sql server box... I am using normal sqlcommands to enter my data into the sql db (vb.net), and alot of times I get users who's application breaks, because of this.
My question is... Is there some T-SQL command in sql server which will tell me the date formats it expects?
What I want to do then is query the server for these settings on startup of my application, and then set my application to use that date format for all it's date functions... This way, I'll eliminate the errors my application has to deal with.
Hello!I have data exported from a Reference Manager 11, and need to import itinto and SQL database.Each record has different number of fields. It is used to cite journalarticles.(more about the format athttp://www.adeptscience.co.uk/kb/article/A626)The format is very strange:TY - RPRTA1 - Esparza,J.T1 - Report of a WHO workshop on the measurement and significance ofneutralizing antibody to HIV and SIV, London, 3-5 October 1988Y1 - 1990VL - 4SP - 269EP - 275RP - Not In FileCY - San Francisco CAPB - UC BerkeleyKW - HIVKW - SIVKW - AIDST3 - World Health Organisation Global Programme on AIDSER -TY - CHAPA1 - Franks,L.M.T1 - Preface by an AIDS VictimY1 - 1991VL - 10SP - viiEP - viiiRP - Not In FileT2 - Cancer, HIV and AIDS.CY - Berkeley CAPB - Berkeley PressKW - HIVKW - AIDSM1 - 1M2 - 1SN - 0-679-40110-5ER -TY - CASEA1 - Cary,A.A1 - Friedenrich,W.T1 - Redman v. State of CaliforniaY1 - 1988/10/7VL - 201IS - 32SP - 220EP - 240RP - Not In FileCY - ATLA Law ReporterPB - San Diego County 45th Judicial District, CaliforniaKW - AIDSKW - litigationKW - AIDS litigationKW - rapeU1 - ISSN 0456-8125N1 - Raped inmate can press case against officials for contractingAIDSER -It looks like some of the columns are separted by CR but part of thesame colum. For instance 'KW' is seen multiple times per record butshould be one field called 'KW'.Any idea how I would import this to SQL Server with the DTS?
Hello Sir, I am using sql server 2000.whenever i fetch a record from as database.i have a date field in the table.it reurns the date with time.but i want only the time with a new format(Like- dd/MM/yyyy).So how can i do it. Pls help. alok..........
I have a PC install the SQL Server 2005 Eng Version and have a database with table.In the table , there is a datetime format column. So, I write a SQL Insert into Table1 (startdate) values ('4-Oct-2006 10:24:29 AM'), It works, record inserted. I have another Server (Windows Server 2003 Chinese Version with SQL Server 2005 Chinese Version). Also,have a database with table and run the same sql statment Insert into Table1 (startdate) values ('4-Oct-2006 10:24:29 AM'). It does not work, since the error message is in chinese, so I try to translate in english. The error says something like, "when converting the string to datetime, it fails" And then I try to rewrite the SQL into Insert into Table1 (startdate) values ('10/4/2006 10:24:29 AM'). It works. So I want to ask and option I can set in SQL Server 2005 to make me use different kinds of date format in the SQL. Please Help, thanks stepby
I don't wnat SQL's Identify column's format ( which is 1�2�3 ...)I want my Prikey column is looks like starts in 0000000001�0000000002�0000000003....I set the Prikey columns type is Char(10) not nullis it possible to setting my identify column as I want?
I have 3 dropdownlist server controls on my webform for the dateofbirth field. One for the day("1", "2" format), one for the month ("Jan", "Feb" format) and one for the year("1994", "1995" format). When the submit button server control is clicked i need to concatenate the day, month and year in the format 01-jan-1994 since i have the dateofbirth field datatype as datetime in my sql server table. I have declared the date variable stored procedure as "@dateofbirth datetime". Provide me the full coding. Thanx in advance
Hi. I'm localized in Greece and the date format used is dd/mm/yyyy.
So I have is that I made a page with a callendar. The user picks a date and this date is stored to an SQL server. But here comes the problem. When I try to write to the server the above format ( dd/mm/yyyy ) is not accepted because SQL wants date in format ( mm/dd/yyyy). So if day is bigger than 12 I get error or if is less than 13 wrong date is stored in the SQL.
Hi Dear All DBAs Does anyone know whether you can specify date format(EG dd/mm/yy or mm/dd/yy) for SQL server when you install it?
It seems to me that it always assume US date format when converting a date string to a datatime variable.
You can easily try this by running query Select convert(smalldatetime, "30/5/2000"). It would say "...out of range..." until you use "5/30/2000". It does not seem to relate to NT regional setting(I already set it to our local setting dd/mm/yyyy).
You can use "set dateformat" in the application to get around it. But I would like to change the default format to dd/mm/yyyy. Any solution? (EG reinstall SQL server?)
When I first installed the SQL server on my server, the default date format was mm/dd/yy. Now I need to change that to dd/mm/yy in regional settings, but its still not reflected in the DB's in SQL (its still mm/dd/yy).
Is it possible to change it in SQL without a complete reinstallation of the server?
Can anyone tell me how can i change the datetime format in Ms SQL Server 2000.
During i insert a data from VB to Ms SQL 2000 database, my date field return me the format as "2004-06-30 14:20:31.000". My actual format need like this "Jun 30 2004 02:20:31 PM"
I have format my coding in VB as "Format(X,"dd/MMM/YYYY HH:MM:SS"). But this look like something wrong once the data is insert to the table.
I have to generate a daily report of survey answers by users? My question is there a way to reformat the query so it generates a table or report with it showing the rows as columns instead.
Here is my initial query.
SELECT
dbo.Reporting_SurveyAnswers.DateCreated AS DateCreated
,dbo.Reporting_SurveyAnswers.questionid AS QuestionID
,dbo.Reporting_SurveyAnswers.surveyid AS SurveyID
,dbo.Reporting_SurveyQuestions.ordernumber AS OrderNumber
,dbo.Reporting_SurveyAnswers.userid AS UserID
,dbo.Reporting_User.LastName1 AS LastName
,dbo.Reporting_User.FirstName AS FirstName
,dbo.Reporting_SurveyQuestions.QuestionText AS QuestionText
,dbo.Reporting_SurveyAnswers.QuestionAnswer AS QuestionAnswer
FROM
dbo.Reporting_Surveys
INNER JOIN dbo.Reporting_SurveyQuestions
ON dbo.Reporting_Surveys.surveyid = dbo.Reporting_SurveyQuestions.surveyid
INNER JOIN dbo.Reporting_SurveyAnswers
ON dbo.Reporting_SurveyQuestions.QuestionID = dbo.Reporting_SurveyAnswers.QuestionID
INNER JOIN dbo.uvwReporting_User
ON dbo.Reporting_SurveyAnswers.userid = dbo.uvReporting_User.userid
WHERE
dbo.uvReporting_SurveyAnswers.surveyid = 1125
Order by dbo.Reporting_SurveyAnswers.DateCreated
,dbo.Reporting_SurveyQuestions.ordernumber
Select
dbo.Reporting_SurveyQuestions.ordernumber AS OrderNumber
, dbo dbo.Reporting_SurveyQuestions.QuestionText AS QuestionText
To complicate matters, some of the users did not answer some of the questions and some of the questions are duplicated in the rows because the database assigned them one answer each.
Example. Question 18 says "Name all the industries you have worked in. Check all that apply.
What happens is lets say the user checks 4 different boxes. In the query results, it will show 4 rows with question 18 with each answer they checked off.
The IT shop I work in installed MS-SQL Server last week for the solepurpose of converting a large MS-SQL Server database to a format thatInformix (our main database engine) can read. MSSQL Server installedperfectly, I can view/manipulate the little "Northwind" sampledatabase, back it up to a file, restore it (Microsoft Tape Format) justfine. But... The MSSQL Server "backup" file they sent me that I needto restore is in a format that I'm unfamiliar with. It is a large*.sqb file and when I try to restore (using Enterprise Manager - Rightclick on "empty" database, choose All Tasks, Restore Database - FromDevice, Point to File - I get the message: File is not a validMicrosoft Tape Format backup set.Looking at my little Northwind backup file in a hex editor I see thecharacters "TAPE" as the first 4 characters of the file. Looking atthe file that I'm unsuccessfully trying to restore in a hex editor Isee "SSBE". It's not in the standard "Microsoft Tape Format"apparently, but does anyone have any clue what might have created thisbackup file? I hope it's not some weird proprietary program! Anyhelp appreciated, thanks...Joe
Is there any way that we import EBCDIC data directly to MSSQL? Don€™t find any option with BCP or DTS to do the same. EBCIDIC file format control file for oracle is well defined and works for ORACLE bulk loader.
I'm working with a table with more than 2 million rows. The problem is that the table has a field called "ShipDate" of type nvarchar. When I try to change the data type to DateTime sql server throws a data conversion error.
I noticed that the date format is as follow: 2006-10-23, so, is there a way sql server takes this field and change it using the field values and applying the correct format? meaning: 10/23/2006