|
You are in trouble.
You need a basic understanding of the following skills
- Reading and understanding requirements.
- Creating designs
- Creating data models
- Creating databases
And I expect that you are going to also need the following skills
- Internet Security
- Web design
- Basic SQL
- Intermediate Database management and SQL
- Basic user security
- Basic business retail knowledge
You could probably start by learning how to create databases, create tables and use SQL to access them. That would probably take a week.
Then learn about business retail and improve your requirement reading skills. No idea how long that will take you.
The two above together can then be used to create some tables that are at least something like what is needed for the project.
|
|
|
|
|
OK, so as I understand it the db_accessadmin role got merged into db_securityadmin in recent versions of SQL server? This is fine, it's better this way.
My question is, when did it happen? I try to cater for all reasonable flavours of SQL server in my system, I recently took great joy in removing support for SQL 7 (The last client using it paid me to migrate their data to 2008r2 via 2005).
Now I'm trying to set up a login with both db_accessadmin & db_securityadmin rights. Or just db_securityadmin, if appropriate. So I need to know which release they merge in. Google is useless on this, so is MSDN.
I could just try to grant the right and suppress the error if it fails, On Error resume next anyone
One day we'll look back on this and plow into a parked car.
|
|
|
|
|
|
well now I feel suitably daft, this is ancient history.
Thank you
|
|
|
|
|
I have a SQL Server project that I'm currently adding code to using SSMSE2k8 and beside the fact that this is all TSQL, there's this creep that's occuring in the facility. Namely the .xml. Now, here's the more technical side of TSQL as related to XML, using a FOR XML PATH juncture. I can do a basic SELECT query and get output of xml (pseudo output really because ... this is the creep; in ssmse that's as far as development WENT) but I'm constrained by all these substitutions in he editor:
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document>
Control characters!
What's the purpose of eliminating right & left arrows ... anyway?
And how might I preserve them and keep the phantom formatter from invading my ... "style" (if you could call it that)?
[Edit]
And wouldn't you know it? This phantom has got me here in a paste! That tagged string up there in the midst of my paragraph is suposed to be:
<?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document>
[End edit]
|
|
|
|
|
Wow,
Could have knocked me over with a feather ... the reason that my editor (was) going south was because of the type I had used to reassign parsed lines of singleline .xml while striking it up as data in a table!.
[nvarchar](MAX) throws (bad use of an alliteration) the phantom formatter into overdrive, while [xml] is silently overlooked. Thus arrows are preserved.
|
|
|
|
|
To avoid XML Escape Characters (" ",' '< <> >& &)
Use this:
FOR XML PATH(''), TYPE).value('.', 'VARCHAR(MAX)')
|
|
|
|
|
Have you got the result...
|
|
|
|
|
My bad,
The original code that I used as the query:
SELECT [xmliform] AS 'data()' FROM [database].[xml].[tblXMLAsTypeNvarchar] FOR XML PATH('')
So, as you can see, an editor will try to format anything from a table where the type is [nvarchar] using it's xml parser when I specify "FOR XML PATH" regardless of how bad I "want" it as xml. And that is with substituted control characters.
|
|
|
|
|
hi to all
i lock a table in sql with belwo query
begin tran
select * from BML.LoanApplication with(TABLOCKX)
now i want to unlock this table but i cant
.
i can read from this table by nolock but i want to unlock this table
any help can be usefule
|
|
|
|
|
First of all, locking has little use when selecting. Second, the lock is released as soon as the statement completes.
What did you think it does?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
ok but this is when that you use COMMIT end of my related code.
but i dont use COMMIT tran in my code.
and if use this code you can see that this table is lock:
select * from sys.dm_tran_locks inner join sys.objects on sys.dm_tran_locks.resource_associated_entity_id=sys.objects.[object_id]
|
|
|
|
|
mehdi.sabet wrote:
ok but this is when that you use COMMIT end of my related code.
but i dont use COMMIT tran in my code. |
First, it's a lousy example; there's no way that the server can "guess" whether it should be rolled back or comitted automatically. Second, there is nothing to commit or rollback, since a SELECT statement doesn't change the data. Don't use a transaction when selecting. Also, set <a href="http://msdn.microsoft.com/en-us/library/ms188792.aspx">XACT ABORT</a>[<a href="http://msdn.microsoft.com/en-us/library/ms188792.aspx" target="_blank" title="New Window">^</a>] to ON. Also, don't lock an entire table, unless really, really required.
mehdi.sabet wrote: and if use this code you can see that this table is lock:
Code to close it on SO[^]
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
|
hi to all
im face with low performance by below query in sql server 2008 any one can help me.
my query is goon work when top has larg number but when top has less row (for example top 19) this query has low performance for table loaninstallment with amount of records(10000000 R).
any one can help me
thanks for any help
my code:
select top 19 * from(select ROW_NUMBER()over (order by ID ) as rowNumber,* from BML.LoanInstallment where total_amount like '%80%') tbl
|
|
|
|
|
mehdi.sabet wrote: my query is goon work when top has larg number but when top has less row (for example top 19) this query has low performance for table loaninstallment with amount of records(10000000 R).
..caused by the ROW_NUMBER function. Do you need it? Is it "just" a way of numbering the records? If yes, select into a temp-table and add the ROW_NUMBER there.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
thankue for answer
i change my query to this:
create table #tblTemp(
ID int,
RowNumber int
)
insert into #tblTemp
select ID,ROW_NUMBER() over(order by ID) RowNum from BML.LoanInstallment
select top 19 * from(select payment_date,total_amount,BML.LoanInstallment.ID,RowNumber from BML.LoanInstallment
inner join
#tblTemp on #tblTemp.ID = BML.LoanInstallment.ID
where total_amount like '%80%') tbl
this run completed a large of second
i think the reason of this is my where clause that i use like in this clause and if i remove it my query is ok and response in reasonable time.
what you thinks ?
thanks
|
|
|
|
|
I think you should try it, and then thank Mycroft
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
thank you
|
|
|
|
|
Additional to Eddies suggestion: Why is total amount stored as text or why are you doing a text operation on a numeric field '%80%' seems wrong!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
this where clause is an example my where claue is another clause that my field is not total amount for example for address or anything else
.
|
|
|
|
|
how to use corrupted sql server database into oracle.
|
|
|
|
|
I would call it a 'little vague' question.
To use a corrupted database, you should first try to fix it and then use it either in SQL or Oracle. AFAIK, there is no straight forward way to use a corrupted database in Oracle.
|
|
|
|
|
Find the problem for corrupted database and make it clean then convert the DB to another DB.If you are changing the corrupted database then there is an possibilities to affect in new database also.So clear and Shift.
|
|
|
|
|
thankue for your answer
but i dont thinks problem is in my database
my db is ok
|
|
|
|