Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts

Thursday, August 07, 2008

[itsdifferent] SQL Server 2008 Released In India

Microsoft SQL Sever 2008 - RTM is out now, and the place was India. SQL Server 2008 will store more data in a compress form, it also features performance optimization in query, search, synchronize, report, and analyze. Read more at

SQL Server 2008 Released In India

--
Brip

__._,_.___
Note: This Group is not a Job Searching Group, so please co-operate and dont transfer any kind of job related material across this Group.AnyOne doing so can be banned from the Group
Thanx , Group Co-Ordinators
Recent Activity
Visit Your Group
Search Ads

Get new customers.

List your web site

in Yahoo! Search.

Y! Groups blog

The place to go

to stay informed

on Groups news!

Y! Messenger

All together now

Host a free online

conference on IM.

.

__,_._,___

Wednesday, May 28, 2008

[itsdifferent] Re: Comma separated list of values of single Database table field

I Normally use Regular Expressions, however this depends on where you
want the presentation layer, on Business Module / Database or in the
actual presentation.

thanks

--- In itsdifferent@yahoogroups.com, "sudev_gandhi" <sudev.gandhi@...>
wrote:
>
>
> Of course one can do it... but when you require this kind of information
> programatically you need to iterate through records. In that case he'll
> have to use some piece of program using loop constructs like cursors (in
> case of T-SQL) or if he prefer he can do it by iterating in ADO.Net
> dataset also.
>
>
>
>
> --- In itsdifferent@yahoogroups.com, "Brijesh" <brijesh.pandya@>
> wrote:
> >
> > I would have just copied single column output in a text editor and did
> > a newline V/s Comma replacement.
> >
> >
> > --- In itsdifferent@yahoogroups.com, "sudev_gandhi" sudev.gandhi@
> > wrote:
> > >
> > > Many times you need to create a comma seperated list of values in a
> > > table. Here is a line of T-SQL solution to get comma separated list
> of
> > > values of single field of a database table.
> > > DECLARE @commaSeparatedVal AS VARCHAR(MAX);
> > >
> > > SELECT @commaSeparatedVal = ISNULL(@commaSeparatedVal +',','') +
> > > CONVERT(VARCHAR,[SKU]) FROM PRODUCT
> > >
> > > PRINT @commaSeparatedVal
> > >
> > > Regards,
> > > Sudev Gandhi
> > > [Recent Articles On My Blog] <http://sudev.blogspot.com/>
> > >
> >
>

__._,_.___
Note: This Group is not a Job Searching Group, so please co-operate and dont transfer any kind of job related material across this Group.AnyOne doing so can be banned from the Group
Thanx , Group Co-Ordinators
Y! Messenger

Files to share?

Send up to 1GB of

files in an IM.

New web site?

Drive traffic now.

Get your business

on Yahoo! search.

Special K Group

on Yahoo! Groups

Join the challenge

and lose weight.

.

__,_._,___

[itsdifferent] Re: Comma separated list of values of single Database table field

Of course one can do it... but when you require this kind of information programatically you need to iterate through records. In that case he'll have to use some piece of program using loop constructs like cursors (in case of T-SQL) or if he prefer he can do it by iterating in ADO.Net dataset also.

 


--- In itsdifferent@yahoogroups.com, "Brijesh" <brijesh.pandya@...> wrote:
>
> I would have just copied single column output in a text editor and did
> a newline V/s Comma replacement.
>
>
> --- In itsdifferent@yahoogroups.com, "sudev_gandhi" sudev.gandhi@
> wrote:
> >
> > Many times you need to create a comma seperated list of values in a
> > table. Here is a line of T-SQL solution to get comma separated list of
> > values of single field of a database table.
> > DECLARE @commaSeparatedVal AS VARCHAR(MAX);
> >
> > SELECT @commaSeparatedVal = ISNULL(@commaSeparatedVal +',','') +
> > CONVERT(VARCHAR,[SKU]) FROM PRODUCT
> >
> > PRINT @commaSeparatedVal
> >
> > Regards,
> > Sudev Gandhi
> > [Recent Articles On My Blog] <http://sudev.blogspot.com/>
> >
>

__._,_.___
Note: This Group is not a Job Searching Group, so please co-operate and dont transfer any kind of job related material across this Group.AnyOne doing so can be banned from the Group
Thanx , Group Co-Ordinators
Need traffic?

Drive customers

With search ads

on Yahoo!

John McEnroe

on Yahoo! Groups

Join him for the

10 Day Challenge.

Yahoo! Groups

Special K Challenge

Join others who

are losing pounds.

.

__,_._,___

[itsdifferent] Re: Comma separated list of values of single Database table field

I would have just copied single column output in a text editor and did
a newline V/s Comma replacement.

--- In itsdifferent@yahoogroups.com, "sudev_gandhi" <sudev.gandhi@...>
wrote:
>
> Many times you need to create a comma seperated list of values in a
> table. Here is a line of T-SQL solution to get comma separated list of
> values of single field of a database table.
> DECLARE @commaSeparatedVal AS VARCHAR(MAX);
>
> SELECT @commaSeparatedVal = ISNULL(@commaSeparatedVal +',','') +
> CONVERT(VARCHAR,[SKU]) FROM PRODUCT
>
> PRINT @commaSeparatedVal
>
> Regards,
> Sudev Gandhi
> [Recent Articles On My Blog] <http://sudev.blogspot.com/>
>

__._,_.___
Note: This Group is not a Job Searching Group, so please co-operate and dont transfer any kind of job related material across this Group.AnyOne doing so can be banned from the Group
Thanx , Group Co-Ordinators
Y! Messenger

Send pics quick

Share photos while

you IM friends.

New web site?

Drive traffic now.

Get your business

on Yahoo! search.

Family Photos

Learn how to best

capture your

family moments.

.

__,_._,___

[itsdifferent] Comma separated list of values of single Database table field

Many times you need to create a comma seperated list of values in a table. Here is a line of T-SQL solution to get comma separated list of values of single field of a database table.
 

DECLARE @commaSeparatedVal AS VARCHAR(MAX);

SELECT @commaSeparatedVal = ISNULL(@commaSeparatedVal +',','') + CONVERT(VARCHAR,[SKU]) FROM PRODUCT

PRINT @commaSeparatedVal

Regards,
Sudev Gandhi

Recent Articles On My Blog

__._,_.___
Note: This Group is not a Job Searching Group, so please co-operate and dont transfer any kind of job related material across this Group.AnyOne doing so can be banned from the Group
Thanx , Group Co-Ordinators
New business?

Get new customers.

List your web site

in Yahoo! Search.

Y! Messenger

Send pics quick

Share photos while

you IM friends.

Wellness Spot

Embrace Change

Break the Yo-Yo

weight loss cycle.

.

__,_._,___

Thursday, April 10, 2008

[itsdifferent] Particle accelerator, Web and Computing


Some of you might knew that there is a 27 KM long particle accelerator in Geneva, Switzerland. For those who dont know what the hack it is, a particle accelerator is a long tube like device from which scientist in white apron rolls out proton, electron in very fast speed, read more
Technology News - Google , Microsoft .Net , SQL Server

--
http://brip.blogspot.com 

__._,_.___
Note: This Group is not a Job Searching Group, so please co-operate and dont transfer any kind of job related material across this Group.AnyOne doing so can be banned from the Group
Thanx , Group Co-Ordinators
Y! Messenger

PC-to-PC calls

Call your friends

worldwide - free!

Search Ads

Get new customers.

List your web site

in Yahoo! Search.

Check out the

Y! Groups blog

Stay up to speed

on all things Groups!

.

__,_._,___

Tuesday, February 05, 2008

Re: [itsdifferent] SQL Client for Multiple types of Database

Dear Deven,
 
I have not encountered with this yet. Seems to be a good way to deal with multiple databases instead of going into individual style of working.
 
So far I have used following database add-in tools which can help a person who want to explore some of the interesting features provided by them.
 
 
Thanks!
Dhananjay

Deven Goratela <dev_khatri@yahoo.com> wrote:
Ever wanted to connect to Oracle,MySQL, MS-SQL, HSQL, Informix,
DB2,etc. with same SQL Client?

Try using this SQL client from this URL
'http://squirrel-sql.sourceforge.net/'.
It runs on Java and you need to have valid drivers jar files.

May be there will be other clients also available for such purposes
but this one is OpenSource and very less configuration needed.

I have been using it, its easy to use. If anyone has other options
then let us know.

- Deven



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

__._,_.___
Note: This Group is not a Job Searching Group, so please co-operate and dont transfer any kind of job related material across this Group.AnyOne doing so can be banned from the Group
Thanx , Group Co-Ordinators
Need traffic?

Drive customers

With search ads

on Yahoo!

Y! Groups blog

the best source

for the latest

scoop on Groups.

Y! Messenger

Files to share?

Send up to 1GB of

files in an IM.

.

__,_._,___

Monday, February 04, 2008

[itsdifferent] SQL Client for Multiple types of Database

Ever wanted to connect to Oracle,MySQL, MS-SQL, HSQL, Informix,
DB2,etc. with same SQL Client?

Try using this SQL client from this URL
'http://squirrel-sql.sourceforge.net/'.
It runs on Java and you need to have valid drivers jar files.

May be there will be other clients also available for such purposes
but this one is OpenSource and very less configuration needed.

I have been using it, its easy to use. If anyone has other options
then let us know.

- Deven

__._,_.___
Note: This Group is not a Job Searching Group, so please co-operate and dont transfer any kind of job related material across this Group.AnyOne doing so can be banned from the Group
Thanx , Group Co-Ordinators
New web site?

Drive traffic now.

Get your business

on Yahoo! search.

Check out the

Y! Groups blog

Stay up to speed

on all things Groups!

Featured Y! Groups

and category pages.

There is something

for everyone.

.

__,_._,___

Friday, August 18, 2006

[itsdifferent] Article on DBA Interviews - SQL Server Central dot com

Hi,
Following article is taken from  <http://www.sqlservercentral.com/columnists/sMcCown/howdoyouspellsql.asp>.

Regards,
Joshi Darshan

I was just looking through the session list at PASS this year and I noticed something a little different. There are professional development tracks. These are sessions on how to be a successful DBA, change management, etc. Personally, I'm really glad to see that someone is finally taking some interest in helping DBAs in areas other than just technical. Don't get me wrong, plenty of us could still use plenty of help in that area (more on that in a minute), but there's really more to being a good DBA than just sitting in your cube with the lights out watching Spotlight with a bottle of lotion in one hand, and a Kleenex in the other.

Today's DBAs are expected to give presentations to management, teach users, make recommendations based off of business requirements (not just technical), and be a shoulder to cry on when someone loses data. This is a huge responsibility and I urge a lot of you to take advantage of some of these sessions. I'll be there.

On the other side… it's time for a little fun. I promised you to talk about getting help in the technical area, so here it is. I'm in the process of finding another DBA and I recently finished another round of interviewing. Here are some of the answers I got from my esteemed interviewees. I'm not going to give you the correct answers, but compare your answers with theirs, and if you answer the same, similarly, or can't see why the answer is wrong, SEEK HELP RIGHT AWAY!! Ok, here goes:


Q: What is TempDB?

A: The database used for guest accounts. You give a guest user access to TempDB so that he can have access to your system without having rights to anything he could harm.

Experience: This DBA has 10yrs in a production environment.


Q: What's the different between char() and varchar()?

A: char() only holds letters while varchar() holds letters and numbers.

Experience: This DBA has 8yrs.


Q: What's the different between char() and varchar()?

A: char() only holds 1 character while varchar() holds as many as you like.

Experience: This DBA has 12yrs and considers himself an expert in writing SPs.


Q: What is fill factor?

A: Fill factor controls the size of the transaction log. The higher the fill factor, the longer the system waits to checkpoint.

Experience: This DBA has 12yrs and considers himself an expert in writing SPs.


Q: What is checkpointing?

A: Checkpointing is the point at which the system checks to see if the transaction log needs to be truncated.

Experience: This DBA has 12yrs and considers himself an expert in writing SPs.


Q: How much memory does SQL use on startup?

A: That's a trick question because SQL doesn't use memory, it stores its information on disk (I guess he got me on that one).

Experience: This DBA has 5yrs.


Q: What is an acceptable disk queue?

A: 15%.

Experience: This DBA has 10yrs in a production environment.


Q: What's a page fault?

A: A corrupt data page caused by trying to write something you shouldn't like writing int to varchar().

Experience: This DBA has 10yrs in a production environment.


Q: OK, then how do you fix a page fault?

A: I forget the name of it, but there's a DBCC for that.

Experience: This DBA has 10yrs in a production environment.


Q: What's the difference between a full and a differential backup?

A: A full backup fills up the tape, and a differential is different because it removes the data it doesn't really need to save space on the tape.

Experience: This DBA has 5yrs.


Q: How do you restore a single table from a backup?

A: I think it's DBCC PartialRestore, or TableRestore… something like that.

Experience: This DBA has 5yrs.


Q: What is the model DB?

A: It isn't used at all. I usually delete it.

Experience: This DBA has 5yrs.


Q: What is a bookmark lookup?

A: It's what SQL uses to keep track of the next query it needs to run.

Experience: This DBA has 10yrs in a production environment.


Q: What's the difference between delete and truncate?

A: Delete gets rid of the rows in the table for good, and truncate copies them all to a history table first in case you need to get them back.

Experience: This DBA has 10yrs in a production environment.


OK, that was fun. Unfortunately, all of those answers truly did come from candidates with the experience listed. I only wish I could make up fiction like that. The sad part is a lot of these guys are senior level DBAs in very important companies, and if I were to reveal which ones, you would pull your bank accounts, trade in your cell phones, sell your stocks, and shred your credit cards. It's honestly scary the complete incompetence of the people in charge of some of the most important aspects of our lives.

It's very discouraging when a guy who works in a very high transaction environment who claims to do conflict resolution several times a day, can't even tell me what a deadlock is. And this same DBA has never even heard of sp_lock. How is that even possible? I am, of course, just ranting now, but come on guys… pick up a book. We live in an age where information has never been more available than it is right now. When I started doing DBs there weren't that many books, and DBAs didn't part with information very easily. You had to learn everything through trial and error, or find an obscure resource that just happened to mention something. The deeper aspects of DBs and OS systems have been revealed over and over, yet some people just refuse to pick it up. Gone are the days where you can sit on what you know and just collect a paycheck… or are they? I mean, these people are not only making a good living, they're getting job after job. We're all competing against them for every position we go for. And the problem is that the hiring managers don't know the difference.

I don't expect anyone to know everything, but when a 10yr DBA doesn't know the difference between char and varchar… come on. What am I supposed to do with that? If you forget some of the subtle nuances of SQL and have to look something up I understand that… hell, I'm in BOL almost every day looking up something… but there's a base level of knowledge that we should all have. Not knowing some of these basics is like you telling me you've been a DBA for 10yrs and you can't explain to me what SEM is used for. Anyway, that's my rant for now… does anyone have anything to add, or any other interview stories?

Sean McCown



--
=======================================================================

__._,_.___
Note: This Group is not a Job Searching Group, so please co-operate and dont transfer any kind of job related material across this Group.AnyOne doing so can be banned from the Group
Thanx , Group Co-Ordinators
Recent Activity
Visit Your Group
Yahoo! Mail

Get it all!

With the all-new

Yahoo! Mail Beta

Need traffic?

Drive customers

With search ads

on Yahoo!

Y! Messenger

Instant hello

Chat over IM with

group members.

.

__,_._,___

Thursday, August 03, 2006

[itsdifferent] hi.. need help regarding sql server performace simulator

Hi all,

 

I have two sql servers, one is on normal environment and one in on cluster based environment. Now I want to test the sql server performance on both this environment. Do anybody knows any tool or script through which I can do this?

 

Thanx in advance.

Kiran Mistry.

__._,_.___
Note: This Group is not a Job Searching Group, so please co-operate and dont transfer any kind of job related material across this Group.AnyOne doing so can be banned from the Group
Thanx , Group Co-Ordinators
SPONSORED LINKS
Need traffic?

Drive customers

With search ads

on Yahoo!

Yahoo! Mail

Get on board

You're invited to try

the all-new Mail Beta.

Y! Messenger

Files to share?

Send up to 1GB of

files in an IM.

.

__,_._,___

Wednesday, June 21, 2006

Re: [itsdifferent] Enterprise Library Exception Handling Block

Thank You very much
 
Arvind Srivastava
email:-arvind@expedien.net


Deepak Jain <deepak_coolhot@yahoo.co.in> wrote:
Steps as follows:-
 
1. Copy dll of exception to the project  bin directory .
2. Change config setting as add exceptionManagement  section..
<
configuration>
<configSections>
<section name="exceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManagerSectionHandler,Microsoft.ApplicationBlocks.ExceptionManagement" />
</configSections>
<exceptionManagement mode="on">
<publisher mode="on" assembly="Microsoft.ApplicationBlocks.ExceptionManagement" type="Microsoft.ApplicationBlocks.ExceptionManagement.DefaultPublisher" logName="POMD Log" applicationName="POMD" />
<publisher mode="on" assembly="POMD" type="POMD.CustomPublisher" />
</exceptionManagement>
 
3. Now at last in the page you can use as ..
 
Imports
Microsoft.ApplicationBlocks.ExceptionManagement
try
catch ( obj as exception)
ExceptionManager.Publish(obj)
end try

it will log exception in the event log.
 
 
Deppak Jain

dipesh parekh <dipesh_it@yahoo.co.in> wrote:
Hi,
Is any one know how to use Enterprise Library Exception Handling Block   (Framework 2.0) in Web application?
 
Please let me know all step to config as well as the global.asx  code.
 
 
Regards
Dipesh
 
 


Contact Me :
 
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



Deepak Jain
Microsoft Certified Solution Developer(.Net)
Microsoft Certified Application Developer(.Net)
Microsoft Certified Professional
(ASP.Net,VB.net, XML Web Services,SQL Server , Architecture Designing)
Billjunction Payment LTD (ICICI Network Company)
Mo. 09869540525

Yahoo! India Answers: Share what you know. Learn something new Click here



Regards

Arvind Srivastava
WB-75, Shakarpur Delhi-92
Mobile No:-9313724692
Email: arsri_1981@yahoo.co.in
: arvind@expedien.net


Yahoo! India Answers: Share what you know. Learn something new Click here

__._,_.___
Note: This Group is not a Job Searching Group, so please co-operate and dont transfer any kind of job related material across this Group.AnyOne doing so can be banned from the Group
Thanx , Group Co-Ordinators
.

__,_._,___