Showing posts with label point. Show all posts
Showing posts with label point. Show all posts

Friday, March 23, 2012

Need some practice

Please point me to a web resource from where I can study:

1) writing complex queries such as those involving HAVING, mult-level
nested queries, GROUP BY, T-SQL functions

2) Joins - a lot of practice

3) Stored Procedures, transactions, cursors and triggers - I need some
heavy-duty practice

Where can I get some good practice of the above? Also, please recommend
a good SQL Server/T-SQL book in the light of the above requirement.Here's a good one for joins. I like the colors for the join tables:

http://www.tek-tips.com/faqs.cfm?fid=4785|||Have you gotten a copy of SQL FOR SMARTIES yet? It is required for
working SQL programmers. And my house payment :)|||> Have you gotten a copy of SQL FOR SMARTIES yet? It is required for
> working SQL programmers. And my house payment :)

The book is of little use to working SQL programmers, a lot of the examples
aren't directly useable in SQL Server nor do they scale into the real world.

People are better off spending a couple of minutes searching GOOGLE for the
answers.

--
Tony Rogerson
SQL Server MVP
http://sqlserverfaq.com - free video tutorials

"--CELKO--" <jcelko212@.earthlink.net> wrote in message
news:1144801857.130733.158410@.i40g2000cwc.googlegr oups.com...
> Have you gotten a copy of SQL FOR SMARTIES yet? It is required for
> working SQL programmers. And my house payment :)

Need some practice

Please point me to a web resource from where I can study:
1) writing complex queries such as those involving HAVING, mult-level
nested queries, GROUP BY, T-SQL functions
2) Joins - a lot of practice
3) Stored Procedures, transactions, cursors and triggers - I need some
heavy-duty practice
Where can I get some good practice of the above? Also, please recommend
a good SQL Server/T-SQL book in the light of the above requirement.Some basic sites that have a couple examples...
http://www.w3schools.com/sql/sql_intro.asp
http://sqlzoo.net/
http://www.geocities.com/SiliconVal.../2207/sql1.html
If you want more comlicated examples, this forum may be the most useful.
You will have to sort through a lot of different posts that do not have what
you are looking for, but you will find dozens of solutions to various
problems that you can learn from.
"Water Cooler v2" <wtr_clr@.yahoo.com> wrote in message
news:1144682834.749751.324310@.i39g2000cwa.googlegroups.com...
> Please point me to a web resource from where I can study:
> 1) writing complex queries such as those involving HAVING, mult-level
> nested queries, GROUP BY, T-SQL functions
> 2) Joins - a lot of practice
> 3) Stored Procedures, transactions, cursors and triggers - I need some
> heavy-duty practice
>
> Where can I get some good practice of the above? Also, please recommend
> a good SQL Server/T-SQL book in the light of the above requirement.
>|||Here's a good one for joins. I like the colors for the join tables:
http://www.tek-tips.com/faqs.cfm?fid=4785|||Have you gotten a copy of SQL FOR SMARTIES yet? It is required for
working SQL programmers. And my house payment :)|||> Have you gotten a copy of SQL FOR SMARTIES yet? It is required for
> working SQL programmers. And my house payment :)
The book is of little use to working SQL programmers, a lot of the examples
aren't directly useable in SQL Server nor do they scale into the real world.
People are better off spending a couple of minutes searching GOOGLE for the
answers.
Tony Rogerson
SQL Server MVP
http://sqlserverfaq.com - free video tutorials
"--CELKO--" <jcelko212@.earthlink.net> wrote in message
news:1144801857.130733.158410@.i40g2000cwc.googlegroups.com...
> Have you gotten a copy of SQL FOR SMARTIES yet? It is required for
> working SQL programmers. And my house payment :)
>

Wednesday, March 21, 2012

Need some help with expressions

I'm pretty much a rookie with this so I'm wondering if someone might
be able to point me in the right direction here..
Here's what I'm using now:
=MonthName(Month(NOW())-1) & ", " & YEAR(NOW()) which displays 'April,
2007'
What I'm trying to do is provide the month,year of the previous
month. For example, we're in May now, and the formula above is
working but once we get to Jan of 2008, the code above will return
December, "2008" instead of December, 2007. I'm sure there's gotta
be an easy way I'm just missing here.. Anyone have any suggestions?
Thanks in advance!Use DateAdd("m", -1, Now()) but you must use it on both parts as your code
will give you December 2007 for January 2007
=MonthName(DateAdd("m", -1, Now())) & ", " & Year(DateAdd("m", -1, Now()))
There is also a great article on how to do date stuff in T-SQL, that might
help with other ideas.
http://www.databasejournal.com/features/mssql/article.php/3076421
Reeves
"tek_1975@.yahoo.com" wrote:
> I'm pretty much a rookie with this so I'm wondering if someone might
> be able to point me in the right direction here..
> Here's what I'm using now:
> =MonthName(Month(NOW())-1) & ", " & YEAR(NOW()) which displays 'April,
> 2007'
> What I'm trying to do is provide the month,year of the previous
> month. For example, we're in May now, and the formula above is
> working but once we get to Jan of 2008, the code above will return
> December, "2008" instead of December, 2007. I'm sure there's gotta
> be an easy way I'm just missing here.. Anyone have any suggestions?
> Thanks in advance!
>|||Better: Format(DateAdd("m", -1, Now()), "MMMM YYYY")
"tek_1975@.yahoo.com" wrote:
> I'm pretty much a rookie with this so I'm wondering if someone might
> be able to point me in the right direction here..
> Here's what I'm using now:
> =MonthName(Month(NOW())-1) & ", " & YEAR(NOW()) which displays 'April,
> 2007'
> What I'm trying to do is provide the month,year of the previous
> month. For example, we're in May now, and the formula above is
> working but once we get to Jan of 2008, the code above will return
> December, "2008" instead of December, 2007. I'm sure there's gotta
> be an easy way I'm just missing here.. Anyone have any suggestions?
> Thanks in advance!
>|||On May 22, 1:57 pm, Reeves Smith
<ReevesSm...@.discussions.microsoft.com> wrote:
> Better: Format(DateAdd("m", -1, Now()), "MMMM YYYY")
>
> "tek_1...@.yahoo.com" wrote:
> > I'm pretty much a rookie with this so I'm wondering if someone might
> > be able to point me in the right direction here..
> > Here's what I'm using now:
> > =MonthName(Month(NOW())-1) & ", " & YEAR(NOW()) which displays 'April,
> > 2007'
> > What I'm trying to do is provide the month,year of the previous
> > month. For example, we're in May now, and the formula above is
> > working but once we get to Jan of 2008, the code above will return
> > December, "2008" instead of December, 2007. I'm sure there's gotta
> > be an easy way I'm just missing here.. Anyone have any suggestions?
> > Thanks in advance!- Hide quoted text -
> - Show quoted text -
Awesome.. Thanks a ton Reeves.. that definitely got me going on the
right track..
Here's what I ended up using..
SELECT SUBSTRING(CONVERT(VARCHAR(30), @.mydate, 113), 4, 8)
Then I'm going to use a report parameter to return the last day
(@.mydate) of the previous month and then convert it using the line
above. I'm sure there might be more elegant ways of doing this...but
it's working!! Thanks again..|||On May 22, 1:57 pm, Reeves Smith
<ReevesSm...@.discussions.microsoft.com> wrote:
> Better: Format(DateAdd("m", -1, Now()), "MMMM YYYY")
>
> "tek_1...@.yahoo.com" wrote:
> > I'm pretty much a rookie with this so I'm wondering if someone might
> > be able to point me in the right direction here..
> > Here's what I'm using now:
> > =MonthName(Month(NOW())-1) & ", " & YEAR(NOW()) which displays 'April,
> > 2007'
> > What I'm trying to do is provide the month,year of the previous
> > month. For example, we're in May now, and the formula above is
> > working but once we get to Jan of 2008, the code above will return
> > December, "2008" instead of December, 2007. I'm sure there's gotta
> > be an easy way I'm just missing here.. Anyone have any suggestions?
> > Thanks in advance!- Hide quoted text -
> - Show quoted text -
Awesome.. Thanks a ton Reeves.. that definitely got me going on the
right track..
Here's what I ended up using..
SELECT SUBSTRING(CONVERT(VARCHAR(30), @.mydate, 113), 4, 8)
Then I'm going to use a report parameter to return the last day
(@.mydate) of the previous month and then convert it using the line
above. I'm sure there might be more elegant ways of doing this...but
it's working!! Thanks again..

Monday, March 19, 2012

Need SMO Resources

Hi,
Could you please point me to some deep SMO resources : articles, books,
e-books ...
I've google a little bit and just find some basic stuff.
Thank youHeve you seen this?
http://download.microsoft.com/downl...%20services.doc
ML

Monday, March 12, 2012

Need references for .Net app replicating SQL2005 database to the laptops

"Earl" <brikshoe@.newsgroups.nospam> wrote in message
news:%23Th7MSAqHHA.4632@.TK2MSFTNGP04.phx.gbl...
> Can anyone point me to some good references for coding a Winforms app to
> trigger replication (merge preferably) on SQL2005? I'm setting up a
> scenario where I want my app to allow multiple laptops to synchronize to
> the distribution SQL2005 database and I'd like to do it either
> automatically or by having them click on a menu/button. From working with
> merge in the CompactFramework, I know the general approach but I do not
> know the equivalent namespaces or techniques in the "big framework".
Maybe, this link will get you started, with the second article in the link
about RMO.
http://www.yukonxml.com/
>
"Earl" <brikshoe@.newsgroups.nospam> wrote in message
news:OLngXCFqHHA.4772@.TK2MSFTNGP04.phx.gbl...
> Thanks for the link (good stuff on that site!) but I saw no link article
> on "RMO."
> "Mr. Arnold" <MR. Arnold@.Arnold.com> wrote in message
> news:eqD3bnCqHHA.2652@.TK2MSFTNGP02.phx.gbl...
>
|||"Earl" <brikshoe@.newsgroups.nospam> wrote in message
news:OLngXCFqHHA.4772@.TK2MSFTNGP04.phx.gbl...
> Thanks for the link (good stuff on that site!) but I saw no link article
> on "RMO."
>
Maybe, this will do it for you.
I am really not having too hard of a time finding this stuff with Google.
Google is your friend.
[url]http://msdn2.microsoft.com/en-us/library/microsoft.sqlserver.replication.replicationserver. replicationserver.aspx[/url]
http://wardyit.com/blog/blog/archive/2006/03/14/94.aspx