Sql query - Urgent   Independent houses near kukatpally | Apartments in Pragathi Nagar | AndhraVaani.com | Log Out | Topics | Search
Register | Edit Profile

Bewarse TalkTechnology - Talk Only Tech � Sql query - Urgent Previous Next

Author Message
Top of pagePrevious messageNext messageBottom of pageLink to this message

Esscuseme
Pilla Bewarse
Username: Esscuseme

Post Number: 467
Registered: 03-2005
Posted From: 208.51.197.126

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 4:11 pm:Edit PostDelete PostView Post/Check IP

Buchi mama

to make your scheduled job easy. here is what i suggest instead of using SQL server jobs.

- Create a .vbs file and write your code there. it resembles much like visual basic code.
- then schedule the job using windows schedular whatever time you want on daily basis.


This works much better than working with SQL server jobs.
Top of pagePrevious messageNext messageBottom of pageLink to this message

Halcyon
Pilla Bewarse
Username: Halcyon

Post Number: 130
Registered: 09-2004
Posted From: 68.213.245.195

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 4:04 pm:Edit PostDelete PostView Post/Check IP

I think all the Qs you have, are answered in the docs.

A long while ago, I remember doing something
using xp_cmdshell and using OS commands to write
output to it to files and send via email. I guess you can do the same with ftp.

You may need to use bcp like:

bcp "SELECT au_fname, au_lname FROM pubs..authors ORDER BY au_lname" queryout Authors.txt -c -Sservername -Usa -Ppassword
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 63
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 3:48 pm:Edit PostDelete PostView Post/Check IP

fixed length ante data in the file

EMPLID(6) SSN(10)

000123437778899

ila

I need options for the name of the extract file like: filename_yesterdays date
Top of pagePrevious messageNext messageBottom of pageLink to this message

Smart
Mudiripoyina Bewarse
Username: Smart

Post Number: 3652
Registered: 03-2004
Posted From: 207.199.2.34

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 3:46 pm:Edit PostDelete PostView Post/Check IP

>>Text file ayite can we get fixed length file?

are u talking about the name of the file?
Top of pagePrevious messageNext messageBottom of pageLink to this message

Smart
Mudiripoyina Bewarse
Username: Smart

Post Number: 3650
Registered: 03-2004
Posted From: 207.199.2.34

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 3:43 pm:Edit PostDelete PostView Post/Check IP

Buchi mama,
SQL jobs ani untayi choodu.

Enterprise manager lo, select the database, right click -> new -> jobs.

I guess you can define a recurring job there.
Top of pagePrevious messageNext messageBottom of pageLink to this message

Buchi
Kurra Bewarse
Username: Buchi

Post Number: 231
Registered: 04-2004
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 3:42 pm:Edit PostDelete PostView Post/Check IP

In jobs can the results be posted to a Text file and FTP it to another server??

Text file ayite can we get fixed length file?
Top of pagePrevious messageNext messageBottom of pageLink to this message

Halcyon
Pilla Bewarse
Username: Halcyon

Post Number: 129
Registered: 09-2004
Posted From: 68.213.245.195

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 3:41 pm:Edit PostDelete PostView Post/Check IP

You can run a job under SQL server agent
and schedule it. Look in Enterprise Managaer,
Management->SQL Agent->Jobs
Top of pagePrevious messageNext messageBottom of pageLink to this message

Buchi
Kurra Bewarse
Username: Buchi

Post Number: 229
Registered: 04-2004
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 3:38 pm:Edit PostDelete PostView Post/Check IP

Halycon, smart, Esscuse me

In SQL Server:

1. Can we automate to run a query every night and post a query results into a Text File

2.My DBA says he cannot give us a FIXED LENGTH file in SQL SERVER?

what are the tools to run a query every night and post the results to a text file on sql server?
Top of pagePrevious messageNext messageBottom of pageLink to this message

Halcyon
Pilla Bewarse
Username: Halcyon

Post Number: 128
Registered: 09-2004
Posted From: 68.213.245.195

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 3:37 pm:Edit PostDelete PostView Post/Check IP

select dateadd(d, -1, getdate())
Top of pagePrevious messageNext messageBottom of pageLink to this message

Buchi
Kurra Bewarse
Username: Buchi

Post Number: 228
Registered: 04-2004
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 3:37 pm:Edit PostDelete PostView Post/Check IP

Smart got it.

Plz answer my other question
Top of pagePrevious messageNext messageBottom of pageLink to this message

Smart
Mudiripoyina Bewarse
Username: Smart

Post Number: 3648
Registered: 03-2004
Posted From: 207.199.2.34

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 3:33 pm:Edit PostDelete PostView Post/Check IP

use GetDate() function

http://msdn.microsoft.com/library/default.asp?url= /library/en-us/tsqlref/ts_ga-gz_4z51.asp
Top of pagePrevious messageNext messageBottom of pageLink to this message

Gkrish
Pilla Bewarse
Username: Gkrish

Post Number: 42
Registered: 05-2004
Posted From: 66.207.137.50

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 3:31 pm:Edit PostDelete PostView Post/Check IP

use Datediff function
Top of pagePrevious messageNext messageBottom of pageLink to this message

Buchi
Kurra Bewarse
Username: Buchi

Post Number: 227
Registered: 04-2004
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 3:29 pm:Edit PostDelete PostView Post/Check IP

In Sql Server what is the option to look for

(SYSDATE - 1)

I need to get yesterday's date on sql server
Top of pagePrevious messageNext messageBottom of pageLink to this message

Buchi
Kurra Bewarse
Username: Buchi

Post Number: 226
Registered: 04-2004
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Wednesday, May 25, 2005 - 3:27 pm:Edit PostDelete PostView Post/Check IP

In SQL Server:

1. Can we automate to run a query every night and post a query results into a Text File

2.My DBA says he cannot give us a FIXED LENGTH file in SQL SERVER?

what are the tools to run a query every night and post the results to a text file on sql server?

If yes answers plz!!
Top of pagePrevious messageNext messageBottom of pageLink to this message

Hero
Yavvanam Kaatesina Bewarse
Username: Hero

Post Number: 1391
Registered: 04-2004
Posted From: 81.76.87.156

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 7:09 pm:Edit PostDelete PostView Post/Check IP

siranjeevi ni yeppudaina kalisava??

manalni kalavataaniki okadu raavaali gaani manam ellam maama..
Top of pagePrevious messageNext messageBottom of pageLink to this message

Esscuseme
Pilla Bewarse
Username: Esscuseme

Post Number: 461
Registered: 03-2005
Posted From: 208.51.197.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 7:08 pm:Edit PostDelete PostView Post/Check IP

Avinash mama bay area lo ekkada

east bay?
south bay?
north bay?
Top of pagePrevious messageNext messageBottom of pageLink to this message

Hero
Yavvanam Kaatesina Bewarse
Username: Hero

Post Number: 1390
Registered: 04-2004
Posted From: 81.76.87.156

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 7:07 pm:Edit PostDelete PostView Post/Check IP

nenu .NET meeda maama work mama back end ORACLE 10G & Sql 2000
Top of pagePrevious messageNext messageBottom of pageLink to this message

Brad
Bewarse Legend
Username: Brad

Post Number: 21595
Registered: 03-2004
Posted From: 204.99.118.9

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 7:07 pm:Edit PostDelete PostView Post/Check IP

nenu London mama
siranjeevi ni yeppudaina kalisava??
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 62
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 7:06 pm:Edit PostDelete PostView Post/Check IP

Bayarea daggarlo mama!!
Top of pagePrevious messageNext messageBottom of pageLink to this message

Hero
Yavvanam Kaatesina Bewarse
Username: Hero

Post Number: 1389
Registered: 04-2004
Posted From: 81.76.87.156

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 7:06 pm:Edit PostDelete PostView Post/Check IP

SQL server oka peddda boku database mama.Oracle very flexi.. kaani small, medium companies anta invest cheyyalevugaa..

nenu London mama..
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 61
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 7:05 pm:Edit PostDelete PostView Post/Check IP

Esscuse mama ee technologies meedha working??

hero mama nuvvu??
Top of pagePrevious messageNext messageBottom of pageLink to this message

Esscuseme
Pilla Bewarse
Username: Esscuseme

Post Number: 460
Registered: 03-2005
Posted From: 208.51.197.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 7:05 pm:Edit PostDelete PostView Post/Check IP

Avinash mama, microsoft anthe, microsoft anthe

nuvvu ekkada untavu mama
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 60
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 7:03 pm:Edit PostDelete PostView Post/Check IP

enti mama SQL Server meeda DATE manipulations intha chiraku gha undi

Oracle picha kewl gha untundhi mama

Hero mama, nuvvu ekkada untavu??
thanksee for the helpu
Top of pagePrevious messageNext messageBottom of pageLink to this message

Esscuseme
Pilla Bewarse
Username: Esscuseme

Post Number: 459
Registered: 03-2005
Posted From: 208.51.197.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:59 pm:Edit PostDelete PostView Post/Check IP

Avinash, very good mama....
atlast we heard from you
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 59
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:59 pm:Edit PostDelete PostView Post/Check IP

Esscuse mama and Hero mama,

Thanks for the help!!...

Interface run chestu anni close chesa..

It worked guys....
Top of pagePrevious messageNext messageBottom of pageLink to this message

Brad
Bewarse Legend
Username: Brad

Post Number: 21588
Registered: 03-2004
Posted From: 204.99.118.9

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:58 pm:Edit PostDelete PostView Post/Check IP

seppanu gaa meericchina salhalaki system crash.. so wait seyyandri...
Top of pagePrevious messageNext messageBottom of pageLink to this message

Hero
Yavvanam Kaatesina Bewarse
Username: Hero

Post Number: 1386
Registered: 04-2004
Posted From: 81.76.87.156

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:58 pm:Edit PostDelete PostView Post/Check IP

vaddu daatangaane teppa tagalese rakam anukuntaa maama, naaku ikkada 1:00 am ayyindi ayina sare kasta padi edo help cheste ayipulekunda..dengsss
Top of pagePrevious messageNext messageBottom of pageLink to this message

Esscuseme
Pilla Bewarse
Username: Esscuseme

Post Number: 457
Registered: 03-2005
Posted From: 208.51.197.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:52 pm:Edit PostDelete PostView Post/Check IP

Hero babai, avinash mama itla hand icchhadu ....

Top of pagePrevious messageNext messageBottom of pageLink to this message

Hero
Yavvanam Kaatesina Bewarse
Username: Hero

Post Number: 1381
Registered: 04-2004
Posted From: 81.76.87.156

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:45 pm:Edit PostDelete PostView Post/Check IP

.NET>London>Vijayawada
Top of pagePrevious messageNext messageBottom of pageLink to this message

Esscuseme
Pilla Bewarse
Username: Esscuseme

Post Number: 456
Registered: 03-2005
Posted From: 208.51.197.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:44 pm:Edit PostDelete PostView Post/Check IP

Hero mama,

software, Bay area, kurnool

How about you mama
Top of pagePrevious messageNext messageBottom of pageLink to this message

Hero
Yavvanam Kaatesina Bewarse
Username: Hero

Post Number: 1379
Registered: 04-2004
Posted From: 81.76.87.156

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:41 pm:Edit PostDelete PostView Post/Check IP

telegu raadaa.. sare

select your_profession, your_work_place, your_birth_place from Esscuseme;
Top of pagePrevious messageNext messageBottom of pageLink to this message

Esscuseme
Pilla Bewarse
Username: Esscuseme

Post Number: 453
Registered: 03-2005
Posted From: 208.51.197.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:38 pm:Edit PostDelete PostView Post/Check IP

Hero mama,
Top of pagePrevious messageNext messageBottom of pageLink to this message

Hero
Yavvanam Kaatesina Bewarse
Username: Hero

Post Number: 1378
Registered: 04-2004
Posted From: 81.76.87.156

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:35 pm:Edit PostDelete PostView Post/Check IP

Esscuseme maaya nuvvu emi chestuntaav
Top of pagePrevious messageNext messageBottom of pageLink to this message

Brad
Bewarse Legend
Username: Brad

Post Number: 21581
Registered: 03-2004
Posted From: 204.99.118.9

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:34 pm:Edit PostDelete PostView Post/Check IP

system crash anta.. mee andarini taruvatha iraga kummettadante. get ready...
Top of pagePrevious messageNext messageBottom of pageLink to this message

Esscuseme
Pilla Bewarse
Username: Esscuseme

Post Number: 451
Registered: 03-2005
Posted From: 208.51.197.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:34 pm:Edit PostDelete PostView Post/Check IP

Avinash babai, what happend...did it work...
Top of pagePrevious messageNext messageBottom of pageLink to this message

Hero
Yavvanam Kaatesina Bewarse
Username: Hero

Post Number: 1377
Registered: 04-2004
Posted From: 81.76.87.156

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:32 pm:Edit PostDelete PostView Post/Check IP

eti avinash maaya solve ayyinda leda ippudu conperm cheyyi
Top of pagePrevious messageNext messageBottom of pageLink to this message

Hero
Yavvanam Kaatesina Bewarse
Username: Hero

Post Number: 1376
Registered: 04-2004
Posted From: 81.76.87.156

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:27 pm:Edit PostDelete PostView Post/Check IP

sorry dob badulu nee table lo column name pettu avinash maaya
Top of pagePrevious messageNext messageBottom of pageLink to this message

Hero
Yavvanam Kaatesina Bewarse
Username: Hero

Post Number: 1375
Registered: 04-2004
Posted From: 81.76.87.156

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:26 pm:Edit PostDelete PostView Post/Check IP

yes mama Esscuseme cheppindi work avvuddi, lekapote idi try cheyyi

select CAST(DATEPART(dd, dob) as nvarchar) + '-' + SUBSTRING(CAST(DATENAME(M, dob) as nvarchar), 1, 3) + '-' + CAST(DATEPART(yyyy, dob) as nvarchar) from person
Top of pagePrevious messageNext messageBottom of pageLink to this message

Esscuseme
Pilla Bewarse
Username: Esscuseme

Post Number: 450
Registered: 03-2005
Posted From: 208.51.197.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:23 pm:Edit PostDelete PostView Post/Check IP

this will work

SELECT DATENAME(dd, <fieldname>) + '-' + convert(char(3), DATENAME(month, <fieldname>)) + '-' + DATENAME(yyyy, <fieldname>)
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 58
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:19 pm:Edit PostDelete PostView Post/Check IP

Esscuseme mama,

MM does not work I am using sql server version 8.00

Any other ideas?
Top of pagePrevious messageNext messageBottom of pageLink to this message

Esscuseme
Pilla Bewarse
Username: Esscuseme

Post Number: 449
Registered: 03-2005
Posted From: 208.51.197.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:16 pm:Edit PostDelete PostView Post/Check IP

avinash mama, try this
SELECT DATENAME(dd, <fieldname>) + '-' + DATENAME(mm, <fieldname>) + '-' + DATENAME(yyyy, <fieldname>)

note the change...instead month, i changed it to mm

if this does'nt work, let me know which version sql server are you using becuase it works just fine for me using both sqls}
Top of pagePrevious messageNext messageBottom of pageLink to this message

Tifosi
Mudiripoyina Bewarse
Username: Tifosi

Post Number: 3982
Registered: 03-2004
Posted From: 208.37.228.208

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:16 pm:Edit PostDelete PostView Post/Check IP

are u using sql loader to insert data into oracle...if not then dmp the data from the sql server into an excel file and using excel formulas concatenate the columns to create an insert statement.
Top of pagePrevious messageNext messageBottom of pageLink to this message

Tifosi
Mudiripoyina Bewarse
Username: Tifosi

Post Number: 3981
Registered: 03-2004
Posted From: 208.37.228.208

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:13 pm:Edit PostDelete PostView Post/Check IP

use mon in the to_date function. im assuming you are storing it in a date field
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 57
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:12 pm:Edit PostDelete PostView Post/Check IP

Tifosi mama,

I extract the data on the sql server side into a text file.

so I need in the oracle date format...when I extract from the SQL Server
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 56
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:11 pm:Edit PostDelete PostView Post/Check IP

Hero and Esscuseme mamas ekkadaki vellaru??

come come !!
Top of pagePrevious messageNext messageBottom of pageLink to this message

Tifosi
Mudiripoyina Bewarse
Username: Tifosi

Post Number: 3980
Registered: 03-2004
Posted From: 208.37.228.208

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:11 pm:Edit PostDelete PostView Post/Check IP

oracle should recognize it if you format the input correctly...
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 55
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:08 pm:Edit PostDelete PostView Post/Check IP

Hero mama,

See my earlier post. I need it like this

24-AUG-2005 instead of 24-AUGUST-2005
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 54
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:06 pm:Edit PostDelete PostView Post/Check IP

Esscuseme mama:

Thanks it worked.

But I need a small modification I am getting like this:

24-August-2005

I need to load into oracle so I need in this format

24-AUG-2005

All others thanks for your input!!
Top of pagePrevious messageNext messageBottom of pageLink to this message

Hero
Yavvanam Kaatesina Bewarse
Username: Hero

Post Number: 1374
Registered: 04-2004
Posted From: 81.76.87.156

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:06 pm:Edit PostDelete PostView Post/Check IP

I got it avinash. here you go.

select CAST(DATEPART(dd, column_name) as nvarchar) + '-' + CAST(DATENAME(mm, column_name) as nvarchar) + '-' + CAST(DATEPART(yyyy, column_name) as nvarchar) from table_name
Top of pagePrevious messageNext messageBottom of pageLink to this message

True_indian
Mudiripoyina Bewarse
Username: True_indian

Post Number: 3541
Registered: 03-2004
Posted From: 24.74.112.215

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 6:00 pm:Edit PostDelete PostView Post/Check IP

rakapote user error anuko mama
Top of pagePrevious messageNext messageBottom of pageLink to this message

Tifosi
Mudiripoyina Bewarse
Username: Tifosi

Post Number: 3979
Registered: 03-2004
Posted From: 208.37.228.208

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 5:57 pm:Edit PostDelete PostView Post/Check IP

pyd maayaaa.....
Top of pagePrevious messageNext messageBottom of pageLink to this message

Pandora_yokka_dabba
Pilla Bewarse
Username: Pandora_yokka_dabba

Post Number: 22
Registered: 05-2005
Posted From: 67.62.108.106

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 5:53 pm:Edit PostDelete PostView Post/Check IP

format(date(required format))
Top of pagePrevious messageNext messageBottom of pageLink to this message

Hero
Yavvanam Kaatesina Bewarse
Username: Hero

Post Number: 1373
Registered: 04-2004
Posted From: 81.76.87.156

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 5:52 pm:Edit PostDelete PostView Post/Check IP

select CONVERT(char (11), column_name) from table_name

it should work, other wise let me know.
Top of pagePrevious messageNext messageBottom of pageLink to this message

Smart
Mudiripoyina Bewarse
Username: Smart

Post Number: 3624
Registered: 03-2004
Posted From: 207.199.2.34

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 5:50 pm:Edit PostDelete PostView Post/Check IP

Essume mama's code would solve your problem
Top of pagePrevious messageNext messageBottom of pageLink to this message

Tifosi
Mudiripoyina Bewarse
Username: Tifosi

Post Number: 3978
Registered: 03-2004
Posted From: 208.37.228.208

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 5:49 pm:Edit PostDelete PostView Post/Check IP

oops oracle anukoni egeskunTu occha
Top of pagePrevious messageNext messageBottom of pageLink to this message

Esscuseme
Pilla Bewarse
Username: Esscuseme

Post Number: 447
Registered: 03-2005
Posted From: 208.51.197.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 5:46 pm:Edit PostDelete PostView Post/Check IP

Tifosi mama, to_date is not a valid function name in SQL server i think.
Top of pagePrevious messageNext messageBottom of pageLink to this message

Esscuseme
Pilla Bewarse
Username: Esscuseme

Post Number: 446
Registered: 03-2005
Posted From: 208.51.197.126

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 5:45 pm:Edit PostDelete PostView Post/Check IP

Avinash mama, this will work

SELECT DATENAME(dd, <fieldname>) + '-' + DATENAME(month, <fieldname>) + '-' + DATENAME(yyyy, <fieldname>)
Top of pagePrevious messageNext messageBottom of pageLink to this message

Tifosi
Mudiripoyina Bewarse
Username: Tifosi

Post Number: 3977
Registered: 03-2004
Posted From: 208.37.228.208

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 5:38 pm:Edit PostDelete PostView Post/Check IP

in your query use this your your date column
to_date (<column_name>, 'yyyy/mm/dd')
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 53
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 5:37 pm:Edit PostDelete PostView Post/Check IP

ehee end of the day burra panicheyyadam ledu

oolluu leraa??
Top of pagePrevious messageNext messageBottom of pageLink to this message

Brad
Bewarse Legend
Username: Brad

Post Number: 21549
Registered: 03-2004
Posted From: 204.99.118.9

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 5:32 pm:Edit PostDelete PostView Post/Check IP

smart mama oka soopu soodu..
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 52
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 5:31 pm:Edit PostDelete PostView Post/Check IP

somebody call Rajahmundry and Halycon
Top of pagePrevious messageNext messageBottom of pageLink to this message

Avinash
Pilla Bewarse
Username: Avinash

Post Number: 51
Registered: 03-2005
Posted From: 209.234.142.80

Rating:N/A
Votes: 0(Vote!)

Posted on Tuesday, May 24, 2005 - 5:30 pm:Edit PostDelete PostView Post/Check IP

In my interface I need data from SQLSERVER

I just need only the DATE from DATETIME Field

Example:
05-MAY-2005 15:25:00.000 DATETIME

When I write my query I just need DATE 05-MAY-2005 from this DATETIME Field

Answer plz !!